mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
import: mv reusable functions to common.py to avoid import_proxy.py
import is a strict keyword in Python, so it is not possible to import a module called 'import', even with things like: * import fdroidserver.import * from fdroidserver import import
This commit is contained in:
parent
87e825bf3e
commit
ab2291475b
5 changed files with 200 additions and 199 deletions
|
@ -19,9 +19,6 @@ module = __import__('fdroidserver.import')
|
|||
for name, obj in inspect.getmembers(module):
|
||||
if name == 'import':
|
||||
clone_to_tmp_dir = obj.clone_to_tmp_dir
|
||||
get_all_gradle_and_manifests = obj.get_all_gradle_and_manifests
|
||||
get_app_from_url = obj.get_app_from_url
|
||||
get_gradle_subdir = obj.get_gradle_subdir
|
||||
obj.options = Options()
|
||||
options = obj.options
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue