@@ -221,7 +221,7 @@ def regenerate():
221
221
""" Clear cache. """
222
222
with RopeContext () as ctx :
223
223
ctx .project .pycore ._invalidate_resource_cache (ctx .resource ) # noqa
224
- ctx .importer .generate_cache (resources = [ ctx . resource ] )
224
+ ctx .importer .generate_cache ()
225
225
ctx .project .sync ()
226
226
227
227
@@ -372,7 +372,7 @@ def __init__(self, path, project_path):
372
372
if os .path .exists ("%s/__init__.py" % project_path ):
373
373
sys .path .append (project_path )
374
374
375
- if self .options .get ('autoimport' ) == '1' :
375
+ if self .options .get ('autoimport' ):
376
376
self .generate_autoimport_cache ()
377
377
378
378
env .debug ('Context init' , project_path )
@@ -409,8 +409,8 @@ def _update_cache(importer, modules=None):
409
409
importer .generate_modules_cache (modules )
410
41
6920
0
importer .project .sync ()
411
411
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
414
414
process = multiprocessing .Process (target = _update_cache , args = (
415
415
self .importer , modules ))
416
416
process .start ()
0 commit comments