Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/werkzeug/__pycache__/useragents.cpython-37.pyc

106 lines
5.3 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]<5D><00>@sPdZddlZGdd<04>de<02>ZGdd<06>de<02>ZddlmZeedd gid
<EFBFBD>[dS) a
werkzeug.useragents
~~~~~~~~~~~~~~~~~~~
This module provides a helper to inspect user agent strings. This module
is far from complete but should work for most of the currently available
browsers.
:copyright: 2007 Pallets
:license: BSD-3-Clause
<EFBFBD>Nc@s6eZdZdZdZdZdZe<07>d<05>Z dd<07>Z
dd <09>Z d
S) <0B>UserAgentParserz5A simple user agent parser. Used by the `UserAgent`.))ZcrosZchromeos)z
iphone|iosZiphone)<02>ipadr)zdarwin|mac|os\s*xZmacos)<02>winZwindows)<02>androidr)<02>netbsdr)<02>openbsdr)<02>freebsdr)Z dragonflyZ dragonflybsd)z (sun|i86)os<6F>solaris)zx11|lin(\b|ux)?<3F>linux)znintendo\s+wiiZwii)<02>irixr )zhp-?uxZhpux)<02>aixr )z sco|unix_svZsco)<02>bsdr )<02>amigar)zblackberry|playbookZ
blackberry)<02>symbianr))Z googlebotZgoogle)ZmsnbotZmsn)<02>yahoor)z
ask jeeves<65>ask)zaol|america\s+online\s+browserZaol)<02>operar)<02>edger)z chrome|criosZchrome)<02> seamonkeyr)z"firefox|firebird|phoenix|iceweaselZfirefox)<02>galeonr)zsafari|versionZsafari)<02>webkitr)<02>caminor)<02> konquerorr)zk-meleonZkmeleon)<02>netscaper)z4msie|microsoft\s+internet\s+explorer|trident/.+? rv:Zmsie)<02>lynxr)<02>linksr)Z BaiduspiderZbaidu)ZbingbotZbing)<02>mozillarz(?:%s)[/\sa-z(]*(\d+[.\da-z]+)?za(?:;\s*|\s+)(\b\w{2}\b(?:-\b\w{2}\b)?)\s*;|(?:\(|\[|;)\s*(\b\w{2}\b(?:-\b\w{2}\b)?)\s*(?:\]|\)|;)cs,dd<02><00>jD<00><01>_<00>fdd<02><08>jD<00><01>_dS)NcSs"g|]\}}|t<00>|tj<02>f<02>qS<00>)<03>re<72>compile<6C>I)<03>.0<EFBFBD>a<>brr<00>9/tmp/pip-install-c3kgu56x/Werkzeug/werkzeug/useragents.py<70>
<listcomp>Lsz,UserAgentParser.__init__.<locals>.<listcomp>cs(g|] \}}|t<00><01>j|tj<03>f<02>qSr)rr<00>_browser_version_rer )r!r"r#)<01>selfrr$r%Ns)<02> platforms<6D>browsers)r'r)r'r$<00>__init__Ks
zUserAgentParser.__init__cCs<>x*|jD]\}}|<03>|<01>}|dk rPqWd}x8|jD]&\}}|<03>|<01>}|dk r4|<04>d<01>}Pq4Wd}}|j<04>|<01>}|dk r<>|<04>d<01>p<>|<04>d<02>}nd}||||fS)N<><00>)r(<00>searchr)<00>group<75> _language_re)r'<00>
user_agent<EFBFBD>platform<72>regex<65>match<63>browser<65>version<6F>languagerrr$<00>__call__Rs 


 zUserAgentParser.__call__N) <0C>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r(r)r&rrr/r*r7rrrr$rsrc@sBeZdZdZe<04>Zdd<03>Zdd<05>Zdd<07>Zdd <09>Z e Z
d
d <0B>Z d S) <0A> UserAgentaARepresents a user agent. Pass it a WSGI environment or a user agent
string and you can inspect some of the details from the user agent
string via the attributes. The following attributes exist:
.. attribute:: string
the raw user agent string
.. attribute:: platform
the browser platform. The following platforms are currently
recognized:
- `aix`
- `amiga`
- `android`
- `blackberry`
- `bsd`
- `chromeos`
- `dragonflybsd`
- `freebsd`
- `hpux`
- `ipad`
- `iphone`
- `irix`
- `linux`
- `macos`
- `netbsd`
- `openbsd`
- `sco`
- `solaris`
- `symbian`
- `wii`
- `windows`
.. attribute:: browser
the name of the browser. The following browsers are currently
recognized:
- `aol` *
- `ask` *
- `baidu` *
- `bing` *
- `camino`
- `chrome`
- `edge`
- `firefox`
- `galeon`
- `google` *
- `kmeleon`
- `konqueror`
- `links`
- `lynx`
- `mozilla`
- `msie`
- `msn`
- `netscape`
- `opera`
- `safari`
- `seamonkey`
- `webkit`
- `yahoo` *
(Browsers marked with a star (``*``) are crawlers.)
.. attribute:: version
the version of the browser
.. attribute:: language
the language of the browser
cCs:t|t<01>r|<01>dd<02>}||_|<00>|<01>\|_|_|_|_dS)NZHTTP_USER_AGENT<4E>) <09>
isinstance<EFBFBD>dict<63>get<65>string<6E>_parserr1r4r5r6)r'Zenviron_or_stringrrr$r*<00>s

 zUserAgent.__init__cCs|jS)N)rA)r'rrr$<00> to_header<65>szUserAgent.to_headercCs|jS)N)rA)r'rrr$<00>__str__<5F>szUserAgent.__str__cCs
t|j<01>S)N)<02>boolr4)r'rrr$<00> __nonzero__<5F>szUserAgent.__nonzero__cCsd|jj|j|jfS)Nz
<%s %r/%s>)<04> __class__r8r4r5)r'rrr$<00>__repr__<5F>szUserAgent.__repr__N) r8r9r:r;rrBr*rCrDrF<00>__bool__rHrrrr$r<hsJr<)<01>_DeprecatedImportModulez.wrappers.user_agentZUserAgentMixinz Werkzeug 1.0)r;r<00>objectrr<ZwerkzeugrJr8rrrr$<00><module> sWe