1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
U
Þ=®dˆã@sddlmZGdd„dƒZdS)é)Ú annotationsc@sŠeZdZUdZdZded<dZded<dZded<dZded<dd    d
œd d „Z    dd œdd„Z
dd œdd„Z dd œdd„Z dd œdd„Z dS)Ú    UserAgentaôRepresents a parsed user agent header value.
 
    The default implementation does no parsing, only the :attr:`string`
    attribute is set. A subclass may parse the string to set the
    common attributes or expose other information. Set
    :attr:`werkzeug.wrappers.Request.user_agent_class` to use a
    subclass.
 
    :param string: The header value to parse.
 
    .. versionadded:: 2.0
        This replaces the previous ``useragents`` module, but does not
        provide a built-in parser.
    Nz
str | NoneÚplatformÚbrowserÚversionÚlanguageÚstrÚNone)ÚstringÚreturncCs
||_dS©N©r
)Úselfr
©rúJd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\werkzeug/user_agent.pyÚ__init__ szUserAgent.__init__)r cCs"dt|ƒj›d|j›d|j›dS)Nú<ú ú/ú>)ÚtypeÚ__name__rr©rrrrÚ__repr__$szUserAgent.__repr__cCs|jSr r rrrrÚ__str__'szUserAgent.__str__ÚboolcCs
t|jƒSr )rrrrrrÚ__bool__*szUserAgent.__bool__cCs|jS)zConvert to a header value.r rrrrÚ    to_header-szUserAgent.to_header)rÚ
__module__Ú __qualname__Ú__doc__rÚ__annotations__rrrrrrrrrrrrrs
    rN)Ú
__future__rrrrrrÚ<module>s