Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cad41ba

Browse files
jnozscmattrobenolt
authored andcommitted
update example in doc based on 0.10.0 update
1 parent d40c2e3 commit cad41ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Retrieve data on a user-agent string
4949
>>> ua_string = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36'
5050
>>> parsed_string = user_agent_parser.Parse(ua_string)
5151
>>> pp.pprint(parsed_string)
52-
{ 'device': { 'brand': None, 'family': 'Other', 'model': None},
52+
{ 'device': { 'brand': 'Apple', 'family': 'Mac', 'model': 'Mac'},
5353
'os': { 'family': 'Mac OS X',
5454
'major': '10',
5555
'minor': '9',
@@ -105,9 +105,9 @@ Extract Device information from user-agent string
105105
>>> ua_string = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36'
106106
>>> parsed_string = user_agent_parser.ParseDevice(ua_string)
107107
>>> pp.pprint(parsed_string)
108-
{ 'brand': None,
109-
'family': 'Other',
110-
'model': None}
108+
{ 'brand': 'Apple',
109+
'family': 'Mac',
110+
'model': 'Mac'}
111111
112112
Copyright
113113
---------

0 commit comments

Comments
 (0)