Skip to content

Commit

Permalink
Remove unnecessary code of dirsnapshot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnergyE committed Nov 30, 2022
1 parent 78adc2f commit e631116
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/watchdog/utils/dirsnapshot.py
Expand Up @@ -255,8 +255,7 @@ def __init__(self, path, recursive=True,

def walk(self, root):
try:
paths = [os.path.join(root, entry if isinstance(entry, str) else entry.name)
for entry in self.listdir(root)]
paths = [os.path.join(root, entry.name) for entry in self.listdir(root)]
except OSError as e:
# Directory may have been deleted between finding it in the directory
# list of its parent and trying to delete its contents. If this
Expand Down

0 comments on commit e631116

Please sign in to comment.