@@ -219,7 +219,7 @@ def dump_code():
219219else :
220220
221221 # for the various emulations/tools provided
222- sys .path .append (' /data/data/org.python/assets' )
222+ sys .path .append (" /data/data/org.python/assets" )
223223
224224 PyConfig ["pkg_repolist" ] = []
225225
@@ -253,9 +253,9 @@ def dump_code():
253253 del home
254254
255255# now in pep0723
256- #PYCONFIG_PKG_INDEXES = [
256+ # PYCONFIG_PKG_INDEXES = [
257257# os.environ.get('PYGPY', "https://pygame-web.github.io/archives/repo/"),
258- #]
258+ # ]
259259
260260PyConfig ["imports_ready" ] = False
261261PyConfig ["pygbag" ] = 0
@@ -688,8 +688,8 @@ async def preload_code(cls, code, callback=None, loaderhome=".", hint=""):
688688 if not len (Config .repos ):
689689 await aio .pep0723 .async_repos ()
690690
691- # TODO switch to METADATA:Requires-Dist
692- # see https://github.com/pygame-web/pygbag/issues/156
691+ # TODO switch to METADATA:Requires-Dist
692+ # see https://github.com/pygame-web/pygbag/issues/156
693693
694694 for cdn in Config .PKG_INDEXES :
695695 async with platform .fopen (Path (cdn ) / Config .REPO_DATA ) as source :
@@ -708,13 +708,13 @@ async def preload_code(cls, code, callback=None, loaderhome=".", hint=""):
708708 DBG (f"635: { maybe_wanted = } known failed { aio .pep0723 .hint_failed = } " )
709709
710710 # FIXME use an hybrid wheel
711- if ' pyodide' in aio .pep0723 .hint_failed :
711+ if " pyodide" in aio .pep0723 .hint_failed :
712712
713- for no_need in (' _zengl' , ' pyodide' , ' beautifulsoup4' ):
713+ for no_need in (" _zengl" , " pyodide" , " beautifulsoup4" ):
714714 if no_need in maybe_wanted :
715715 maybe_wanted .remove (no_need )
716716 # force
717- maybe_wanted .append (' beautifulsoup4' )
717+ maybe_wanted .append (" beautifulsoup4" )
718718
719719 for dep in maybe_wanted :
720720 if not dep in deps :
@@ -1073,10 +1073,10 @@ def urlretrieve(maybe_url, filename=None, reporthook=None, data=None):
10731073 PyConfig .pkg_indexes .append (redirect )
10741074
10751075 print ("807: DEV MODE ON" , PyConfig .pkg_indexes )
1076- # now in pep0723
1077- # else:
1078- # # address cdn
1079- # PyConfig.pkg_indexes = PYCONFIG_PKG_INDEXES
1076+ # now in pep0723
1077+ # else:
1078+ # # address cdn
1079+ # PyConfig.pkg_indexes = PYCONFIG_PKG_INDEXES
10801080
10811081 from platform import window , document , ffi
10821082
@@ -1375,6 +1375,7 @@ def __call__(self, callid, fn, *argv, **env):
13751375 return None
13761376
13771377 print (f"{ self .__dlref } .{ fn } ({ argv } ,{ env } ) { callid = } " )
1378+
13781379 async def rv ():
13791380 obj = await platform .jsiter (window .dlcall (callid , jshex ))
13801381 return json .loads (obj )
@@ -1475,6 +1476,7 @@ def log(*argv, **kw):
14751476 LOCK
14761477except :
14771478 import builtins
1479+
14781480 builtins .LOCK = False
14791481
14801482
@@ -1617,7 +1619,7 @@ async def main():
16171619 local = tmpdir / file
16181620 break
16191621 DBG ("1862: import_site: found " , local )
1620- elif str (source ).startswith (' http' ):
1622+ elif str (source ).startswith (" http" ):
16211623 print ("Remote file :" , source )
16221624 local = tmpdir / "remote.py"
16231625 await shell .exec (shell .wget (f"-O{ local } " , source ))
0 commit comments