From 98c489c44fbe81888fac3a5e522a9dde80bfbcf3 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Fri, 28 Aug 2015 17:53:31 -0300 Subject: [PATCH] Fix Python 3 --- telegram/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/base.py b/telegram/base.py index bcbc04315..ac0deac0f 100644 --- a/telegram/base.py +++ b/telegram/base.py @@ -58,7 +58,7 @@ class TelegramObject(object): """ data = dict() - for key, value in self.__dict__.iteritems(): + for key, value in self.__dict__.items(): if value: if hasattr(value, 'to_dict'): data[key] = value.to_dict()