From 0568460f056e8d81738d207c4396947bfac587a9 Mon Sep 17 00:00:00 2001 From: SergBobrovsky Date: Sat, 9 Jan 2021 16:54:04 +0300 Subject: [PATCH] remove some redundant from FileCheckerThread.run() third arg of `getattr` is default value --- bottle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bottle.py b/bottle.py index 8ed2af32..94f6876a 100755 --- a/bottle.py +++ b/bottle.py @@ -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)