mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-26 13:15:21 -04:00
Python: PEP8 fixes (#1926)
* fix [E401](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * fix [E711](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * fix [E713](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * fix [E722](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * fix [W601](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes) * fix [W605](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)
This commit is contained in:
parent
2e46d64db7
commit
85e7b7d615
14 changed files with 36 additions and 28 deletions
|
|
@ -219,7 +219,7 @@ def process_file(fn, allow_modifications):
|
|||
orig_lines = orig_content.decode("utf8").split("\n")
|
||||
new_lines = new_content.decode("utf8").split("\n")
|
||||
diff = unified_diff(orig_lines, new_lines, "before", "after", lineterm="")
|
||||
except:
|
||||
except Exception:
|
||||
diff = [] #
|
||||
raise Exception(f"File modified:\n" + "\n".join(diff))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue