From a82f4d780f3a778ba9704ef55037d6d935baf956 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Sat, 4 Jul 2015 20:25:02 +0800 Subject: [PATCH] Support python3 queue --- telebot/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 14f1632..431f73c 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -2,7 +2,11 @@ from __future__ import print_function import threading -import Queue +# Python3 queue support. +try: + import Queue +except ImportError: + import queue as Queue import time import re