misc,python: Run pre-commit run --all-files
Applies the `pyupgrade` hook to all files in the repo. Change-Id: I9879c634a65c5fcaa9567c63bc5977ff97d5d3bf
This commit is contained in:
@@ -110,7 +110,7 @@ def path_as_modulename(filepath):
|
||||
|
||||
|
||||
def path_as_suitename(filepath):
|
||||
return os.path.split(os.path.dirname(os.path.abspath((filepath))))[-1]
|
||||
return os.path.split(os.path.dirname(os.path.abspath(filepath)))[-1]
|
||||
|
||||
|
||||
def _assert_files_in_same_dir(files):
|
||||
@@ -121,7 +121,7 @@ def _assert_files_in_same_dir(files):
|
||||
assert os.path.dirname(f) == directory
|
||||
|
||||
|
||||
class Loader(object):
|
||||
class Loader:
|
||||
"""
|
||||
Class for discovering tests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user