mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3abe43d90c
commit
167cb89dc7
@ -199,8 +199,13 @@ def parse_metadata(raw, namelist, zf):
|
||||
top_level_imports = filter(lambda x:x.__class__.__name__ == 'ImportFrom', ast.iter_child_nodes(module))
|
||||
top_level_classes = tuple(filter(lambda x:x.__class__.__name__ == 'ClassDef', ast.iter_child_nodes(module)))
|
||||
top_level_assigments = filter(lambda x:x.__class__.__name__ == 'Assign', ast.iter_child_nodes(module))
|
||||
defaults = {'name':'', 'description':'', 'supported_platforms':['windows', 'osx', 'linux'],
|
||||
'version':(1, 0, 0), 'author':'Unknown', 'minimum_calibre_version':(0, 9, 42)}
|
||||
defaults = {
|
||||
'name':'', 'description':'',
|
||||
'supported_platforms':['windows', 'osx', 'linux'],
|
||||
'version':(1, 0, 0),
|
||||
'author':'Unknown',
|
||||
'minimum_calibre_version':(0, 9, 42)
|
||||
}
|
||||
field_names = set(defaults)
|
||||
imported_names = {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user