Working on Python 3 support

This commit is contained in:
Leandro Toledo 2015-07-12 10:39:11 -03:00
parent 4a2c09e0cf
commit 3df9d2b429
5 changed files with 30 additions and 27 deletions

View file

@ -11,7 +11,7 @@ clean:
find . -name '*~' -exec rm -f {} \; find . -name '*~' -exec rm -f {} \;
lint: lint:
flake8 telegram flake8 --doctests --max-complexity 10 telegram
test: test:
python telegram_test.py python telegram_test.py

View file

@ -1,31 +1,34 @@
#!/usr/bin/env python #!/usr/bin/env python
# flake8: noqa
"""A library that provides a Python interface to the Telegram Bots API""" """A library that provides a Python interface to the Telegram Bots API"""
__author__ = 'leandrotoledodesouza@gmail.com' __author__ = 'leandrotoledodesouza@gmail.com'
__version__ = '1.1' __version__ = '1.1'
import json from .user import User
from .message import Message
from .update import Update
from .groupchat import GroupChat
from .photosize import PhotoSize
from .audio import Audio
from .document import Document
from .sticker import Sticker
from .video import Video
from .contact import Contact
from .location import Location
from .chataction import ChatAction
from .userprofilephotos import UserProfilePhotos
from .replykeyboardmarkup import ReplyKeyboardMarkup
from .replykeyboardhide import ReplyKeyboardHide
from .forcereply import ForceReply
from .replymarkup import ReplyMarkup
from .inputfile import InputFile
from .error import TelegramError
from .emoji import Emoji
from .bot import Bot
from user import User __all__ = ['Bot', 'Emoji', 'TelegramError', 'InputFile', 'ReplyMarkup',
from message import Message 'ForceReply', 'ReplyKeyboardHide', 'ReplyKeyboardMarkup',
from update import Update 'UserProfilePhotos', 'ChatAction', 'Location', 'Contact',
from groupchat import GroupChat 'Video', 'Sticker', 'Document', 'Audio', 'PhotoSize', 'GroupChat',
from photosize import PhotoSize 'Update', 'Message', 'User']
from audio import Audio
from document import Document
from sticker import Sticker
from video import Video
from contact import Contact
from location import Location
from chataction import ChatAction
from userprofilephotos import UserProfilePhotos
from replykeyboardmarkup import ReplyKeyboardMarkup
from replykeyboardhide import ReplyKeyboardHide
from forcereply import ForceReply
from replymarkup import ReplyMarkup
from inputfile import InputFile
from error import TelegramError
from emoji import Emoji
from bot import Bot

View file

@ -2,7 +2,7 @@
import json import json
from replymarkup import ReplyMarkup from .replymarkup import ReplyMarkup
class ForceReply(ReplyMarkup): class ForceReply(ReplyMarkup):

View file

@ -2,7 +2,7 @@
import json import json
from replymarkup import ReplyMarkup from .replymarkup import ReplyMarkup
class ReplyKeyboardHide(ReplyMarkup): class ReplyKeyboardHide(ReplyMarkup):

View file

@ -2,7 +2,7 @@
import json import json
from replymarkup import ReplyMarkup from .replymarkup import ReplyMarkup
class ReplyKeyboardMarkup(ReplyMarkup): class ReplyKeyboardMarkup(ReplyMarkup):