mirror of
https://github.com/powerline/powerline.git
synced 2025-07-14 09:24:55 +02:00
Replace os.path.walk with os.walk
os.path.walk was removed in python-3
This commit is contained in:
parent
4e91f18908
commit
eae7d1ff42
@ -154,9 +154,10 @@ class UvTreeWatcher(UvWatcher):
|
|||||||
self.watch_directory(self.basedir)
|
self.watch_directory(self.basedir)
|
||||||
|
|
||||||
def watch_directory(self, path):
|
def watch_directory(self, path):
|
||||||
os.path.walk(normpath(path, self.fenc), self.watch_one_directory, None)
|
for root, dirs, files in os.walk(normpath(path, self.fenc)):
|
||||||
|
self.watch_one_directory(root)
|
||||||
|
|
||||||
def watch_one_directory(self, arg, dirname, fnames):
|
def watch_one_directory(self, dirname):
|
||||||
try:
|
try:
|
||||||
self.watch(dirname)
|
self.watch(dirname)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user