Import sys in reload() function

It may be None sometimes
This commit is contained in:
ZyX 2014-08-19 19:05:14 +04:00
parent ff78eaa35c
commit 015a2160ce
1 changed files with 1 additions and 0 deletions

View File

@ -774,6 +774,7 @@ class Powerline(object):
may break your python code.
'''
from imp import reload
import sys
modules = self.imported_modules | set((module for module in sys.modules if module.startswith('powerline')))
modules_holder = []
for module in modules: