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 {} \;
lint:
flake8 telegram
flake8 --doctests --max-complexity 10 telegram
test:
python telegram_test.py

View file

@ -1,31 +1,34 @@
#!/usr/bin/env python
# flake8: noqa
"""A library that provides a Python interface to the Telegram Bots API"""
__author__ = 'leandrotoledodesouza@gmail.com'
__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
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
__all__ = ['Bot', 'Emoji', 'TelegramError', 'InputFile', 'ReplyMarkup',
'ForceReply', 'ReplyKeyboardHide', 'ReplyKeyboardMarkup',
'UserProfilePhotos', 'ChatAction', 'Location', 'Contact',
'Video', 'Sticker', 'Document', 'Audio', 'PhotoSize', 'GroupChat',
'Update', 'Message', 'User']

View file

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

View file

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

View file

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