Merge pull request #3623 from hugovk/fix-flake8

Fix Flake8
This commit is contained in:
Hugo 2019-01-31 17:09:57 +02:00 committed by GitHub
commit 3a41d6dc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -205,7 +205,7 @@ class TestFileLibTiff(LibTiffTestCase):
# 4: "long", # 4: "long",
# 5: "rational", # 5: "rational",
# 12: "double", # 12: "double",
# type: dummy value # Type: dummy value
values = {2: 'test', values = {2: 'test',
3: 1, 3: 1,
4: 2**20, 4: 2**20,

View File

@ -393,8 +393,6 @@ class PdfParser:
def __init__(self, filename=None, f=None, def __init__(self, filename=None, f=None,
buf=None, start_offset=0, mode="rb"): buf=None, start_offset=0, mode="rb"):
# type: (PdfParser, str, file, Union[bytes, bytearray], int, str)
# -> None
if buf and f: if buf and f:
raise RuntimeError( raise RuntimeError(
"specify buf or f or filename, but not both buf and f") "specify buf or f or filename, but not both buf and f")

View File

@ -307,7 +307,7 @@ if 'PYTHON' in os.environ:
add_compiler(compiler_from_env(), bit_from_env()) add_compiler(compiler_from_env(), bit_from_env())
else: else:
# for compiler in all_compilers(): # for compiler in all_compilers():
# add_compiler(compiler) # add_compiler(compiler)
add_compiler(compilers[7.0][2008][32], 32) add_compiler(compilers[7.0][2008][32], 32)
with open('build_deps.cmd', 'w') as f: with open('build_deps.cmd', 'w') as f: