We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0496781 commit 6237bb6Copy full SHA for 6237bb6
telegram/inputfile.py
@@ -67,7 +67,7 @@ def __init__(self,
67
68
if isinstance(self.input_file, file):
69
self.input_file_content = self.input_file.read()
70
- if self.data.has_key('filename') and self.data['filename']:
+ if 'filename' in self.data and self.data['filename']:
71
self.filename = self.data['filename']
72
else:
73
self.filename = os.path.basename(self.input_file.name)
0 commit comments