@@ -221,7 +221,7 @@ def regenerate():
221221 """ Clear cache. """
222222 with RopeContext () as ctx :
223223 ctx .project .pycore ._invalidate_resource_cache (ctx .resource ) # noqa
224- ctx .importer .generate_cache (resources = [ ctx . resource ] )
224+ ctx .importer .generate_cache ()
225225 ctx .project .sync ()
226226
227227
@@ -372,7 +372,7 @@ def __init__(self, path, project_path):
372372 if os .path .exists ("%s/__init__.py" % project_path ):
373373 sys .path .append (project_path )
374374
375- if self .options .get ('autoimport' ) == '1' :
375+ if self .options .get ('autoimport' ):
376376 self .generate_autoimport_cache ()
377377
378378 env .debug ('Context init' , project_path )
@@ -409,8 +409,8 @@ def _update_cache(importer, modules=None):
409409 importer .generate_modules_cache (modules )
410410 importer .project .sync ()
411411
412- sys .stdout , stdout_ = StringIO . StringIO (), sys .stdout
413- sys .stderr , stderr_ = StringIO . StringIO (), sys .stderr
412+ sys .stdout , stdout_ = StringIO (), sys .stdout
413+ sys .stderr , stderr_ = StringIO (), sys .stderr
414414 process = multiprocessing .Process (target = _update_cache , args = (
415415 self .importer , modules ))
416416 process .start ()
0 commit comments