From 8a074fd719eb1ec3b1a561a5a7ac073f094703bd Mon Sep 17 00:00:00 2001 From: ErgoZ Riftbit Vaper Date: Tue, 8 Sep 2015 21:13:11 +0300 Subject: [PATCH] Delete unused check (forget from previous local version) --- telegram/inputfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/inputfile.py b/telegram/inputfile.py index 9a5103df2..ec42b85ff 100644 --- a/telegram/inputfile.py +++ b/telegram/inputfile.py @@ -67,7 +67,7 @@ class InputFile(object): if isinstance(self.input_file, file): self.input_file_content = self.input_file.read() - if 'filename' in self.data and self.data['filename']: + if 'filename' in self.data: self.filename = self.data['filename'] else: self.filename = os.path.basename(self.input_file.name)