mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Explicitly open files as 'r' instead of leaving it out
This commit is contained in:
@@ -68,7 +68,7 @@ author = 'Lonami'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
with open(os.path.join(root, 'telethon', 'version.py')) as f:
|
||||
with open(os.path.join(root, 'telethon', 'version.py'), 'r') as f:
|
||||
version = re.search(r"^__version__\s+=\s+'(.*)'$",
|
||||
f.read(), flags=re.MULTILINE).group(1)
|
||||
|
||||
|
Reference in New Issue
Block a user