Skip to content

Commit

Permalink
remove some redundant from FileCheckerThread.run()
Browse files Browse the repository at this point in the history
third arg of `getattr` is default value
  • Loading branch information
SergBobrovsky authored and defnull committed Sep 7, 2024
1 parent 1d010ca commit 0568460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -3998,7 +3998,7 @@ def run(self):
files = dict()

for module in list(sys.modules.values()):
path = getattr(module, '__file__', '') or ''
path = getattr(module, '__file__', '')
if path[-4:] in ('.pyo', '.pyc'): path = path[:-1]
if path and exists(path): files[path] = mtime(path)

Expand Down

0 comments on commit 0568460

Please sign in to comment.