@@ -219,7 +219,7 @@ def Parse(self, user_agent_string):
219219
220220
221221def Parse (user_agent_string , ** jsParseBits ):
222- """ Parse all the things
222+ """Parse all the things
223223 Args:
224224 user_agent_string: the full user agent string
225225 jsParseBits: javascript override bits
@@ -244,7 +244,7 @@ def Parse(user_agent_string, **jsParseBits):
244244
245245
246246def ParseUserAgent (user_agent_string , ** jsParseBits ):
247- """ Parses the user-agent string for user agent (browser) info.
247+ """Parses the user-agent string for user agent (browser) info.
248248 Args:
249249 user_agent_string: The full user-agent string.
250250 jsParseBits: javascript override bits.
@@ -290,7 +290,7 @@ def ParseUserAgent(user_agent_string, **jsParseBits):
290290
291291
292292def ParseOS (user_agent_string , ** jsParseBits ):
293- """ Parses the user-agent string for operating system info
293+ """Parses the user-agent string for operating system info
294294 Args:
295295 user_agent_string: The full user-agent string.
296296 jsParseBits: javascript override bits.
@@ -312,7 +312,7 @@ def ParseOS(user_agent_string, **jsParseBits):
312312
313313
314314def ParseDevice (user_agent_string ):
315- """ Parses the user-agent string for device info.
315+ """Parses the user-agent string for device info.
316316 Args:
317317 user_agent_string: The full user-agent string.
318318 ua_family: The parsed user agent family name.
@@ -368,7 +368,7 @@ def ParseWithJSOverrides(
368368 js_user_agent_v2 = None ,
369369 js_user_agent_v3 = None ,
370370):
371- """ backwards compatible. use one of the other Parse methods instead! """
371+ """backwards compatible. use one of the other Parse methods instead!"""
372372
373373 # Override via JS properties.
374374 if js_user_agent_family is not None and js_user_agent_family != "" :
@@ -404,7 +404,7 @@ def ParseWithJSOverrides(
404404
405405
406406def Pretty (family , v1 = None , v2 = None , v3 = None ):
407- """ backwards compatible. use PrettyUserAgent instead! """
407+ """backwards compatible. use PrettyUserAgent instead!"""
408408 if v3 :
409409 if v3 [0 ].isdigit ():
410410 return "%s %s.%s.%s" % (family , v1 , v2 , v3 )
@@ -477,7 +477,7 @@ def GetFilters(
477477 except ImportError :
478478 from yaml import SafeLoader
479479
480- with open (UA_PARSER_YAML , 'rb' ) as fp :
480+ with open (UA_PARSER_YAML , "rb" ) as fp :
481481 regexes = yaml .load (fp , Loader = SafeLoader )
482482
483483 USER_AGENT_PARSERS = []
0 commit comments