Add shebangs and set proper file permissions

This commit is contained in:
Lonami Exo 2017-05-20 15:58:44 +02:00
parent fb9104417e
commit ca80b05694
24 changed files with 7 additions and 3 deletions

1
docs/generate.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import os
import re
import sys

1
run_tests.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import unittest
if __name__ == '__main__':

0
telethon/crypto/auth_key.py Executable file → Normal file
View File

0
telethon/crypto/factorizator.py Executable file → Normal file
View File

0
telethon/crypto/rsa.py Executable file → Normal file
View File

0
telethon/helpers.py Executable file → Normal file
View File

0
telethon/network/__init__.py Executable file → Normal file
View File

0
telethon/network/authenticator.py Executable file → Normal file
View File

0
telethon/network/mtproto_plain_sender.py Executable file → Normal file
View File

0
telethon/network/tcp_client.py Executable file → Normal file
View File

0
telethon/network/tcp_transport.py Executable file → Normal file
View File

View File

@ -1,5 +1,5 @@
import platform
from datetime import datetime, timedelta
from datetime import timedelta
from hashlib import md5
from mimetypes import guess_type
from os import listdir, path
@ -518,7 +518,7 @@ class TelegramClient:
entity)
def send_media_file(self, input_media, entity):
"""Sends any input_media (contact, document, photo...) to the given entiy"""
"""Sends any input_media (contact, document, photo...) to the given entity"""
self.invoke(
SendMediaRequest(
peer=get_input_peer(entity),
@ -741,6 +741,6 @@ class TelegramClient:
self.sender.remove_update_handler(handler)
def list_update_handlers(self):
return [ handler.__name__ for handler in self.sender.on_update_handlers ]
return [handler.__name__ for handler in self.sender.on_update_handlers]
# endregion

0
telethon/tl/__init__.py Executable file → Normal file
View File

0
telethon/tl/mtproto_request.py Executable file → Normal file
View File

0
telethon/tl/session.py Executable file → Normal file
View File

0
telethon/utils/__init__.py Executable file → Normal file
View File

0
telethon/utils/binary_reader.py Executable file → Normal file
View File

0
telethon/utils/binary_writer.py Executable file → Normal file
View File

0
telethon_generator/parser/__init__.py Executable file → Normal file
View File

0
telethon_generator/parser/source_builder.py Executable file → Normal file
View File

0
telethon_generator/parser/tl_object.py Executable file → Normal file
View File

0
telethon_generator/parser/tl_parser.py Executable file → Normal file
View File

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import os
import re
import shutil

1
try_telethon.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import traceback
from telethon.interactive_telegram_client import (InteractiveTelegramClient,