diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-09-30 20:15:27 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-09-30 20:23:38 +0200 |
commit | fa62360357e13f464ff04759f293e2990cf4f489 (patch) | |
tree | dbd926d12fc58c0e8a36df6b66cd39e9704d019f /scripts/dev/misc_checks.py | |
parent | 8c02ef69ecf6ed58f0069012311229f55040ec54 (diff) | |
download | qutebrowser-fa62360357e13f464ff04759f293e2990cf4f489.tar.gz qutebrowser-fa62360357e13f464ff04759f293e2990cf4f489.zip |
Remove unneeded str
Only needed in Python 3.5 times
Diffstat (limited to 'scripts/dev/misc_checks.py')
-rw-r--r-- | scripts/dev/misc_checks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py index 908daad4d..6759fc474 100644 --- a/scripts/dev/misc_checks.py +++ b/scripts/dev/misc_checks.py @@ -64,7 +64,7 @@ def _get_files( continue try: - with tokenize.open(str(path)): + with tokenize.open(path): pass except SyntaxError as e: # Could not find encoding @@ -274,7 +274,7 @@ def check_spelling(args: argparse.Namespace) -> Optional[bool]: try: ok = True for path in _get_files(verbose=args.verbose, ignored=ignored): - with tokenize.open(str(path)) as f: + with tokenize.open(path) as f: if not _check_spelling_file(path, f, patterns): ok = False print() @@ -292,7 +292,7 @@ def check_vcs_conflict(args: argparse.Namespace) -> Optional[bool]: if path.suffix in {'.rst', '.asciidoc'}: # False positives continue - with tokenize.open(str(path)) as f: + with tokenize.open(path) as f: for line in f: if any(line.startswith(c * 7) for c in '<>=|'): print("Found conflict marker in {}".format(path)) |