mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 19:48:57 +01:00
flake8
This commit is contained in:
parent
d10b657521
commit
831a0a31e5
1 changed files with 3 additions and 2 deletions
|
@ -83,7 +83,9 @@ class InputFile(object):
|
|||
elif isinstance(self.input_file, file):
|
||||
self.filename = os.path.basename(self.input_file.name)
|
||||
elif from_url:
|
||||
self.filename = self.input_file.url.split('/')[-1].split('?')[0].split('&')[0]
|
||||
self.filename = \
|
||||
self.input_file.url.split('/')[-1]\
|
||||
.split('?')[0].split('&')[0]
|
||||
|
||||
try:
|
||||
self.mimetype = InputFile.is_image(self.input_file_content)
|
||||
|
@ -93,7 +95,6 @@ class InputFile(object):
|
|||
self.mimetype = mimetypes.guess_type(self.filename)[0] or \
|
||||
DEFAULT_MIME_TYPE
|
||||
|
||||
|
||||
@property
|
||||
def headers(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue