mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 03:25:16 +01:00
...
This commit is contained in:
parent
7261b9fbc4
commit
f9329fe5b6
1 changed files with 2 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ def verify_ca_certs(self):
|
|||
# }}}
|
||||
|
||||
|
||||
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 @@ def run(self, opts):
|
|||
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): # {{{
|
||||
|
|
|
|||
Loading…
Reference in a new issue