This commit is contained in:
Kovid Goyal 2017-02-18 10:09:29 +05:30
parent 7261b9fbc4
commit f9329fe5b6

View File

@ -255,7 +255,7 @@ class CACerts(Command): # {{{
# }}}
class RecentUAs(Command):
class RecentUAs(Command): # {{{
description = 'Get updated list of recent browser user agents'
UA_PATH = os.path.join(Command.RESOURCES, 'common-user-agents.txt')
@ -289,6 +289,7 @@ class RecentUAs(Command):
raise RuntimeError('Failed to download list of common user agents')
with open(self.UA_PATH, 'wb') as f:
f.write('\n'.join(lines).encode('ascii'))
# }}}
class RapydScript(Command): # {{{