mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-25 16:20:33 +03:00
commit
3a41d6dc69
|
@ -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,
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user