From 63ea899605e5a956da0dbed4012861c202640f8b Mon Sep 17 00:00:00 2001 From: Marco Gavelli Date: Mon, 19 Mar 2018 20:47:41 +0100 Subject: [PATCH] fix for python3 --- fbchat/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fbchat/utils.py b/fbchat/utils.py index 72bbcfe..6a9535f 100644 --- a/fbchat/utils.py +++ b/fbchat/utils.py @@ -11,8 +11,10 @@ from .models import * try: from urllib.parse import urlencode + basestring = (str, bytes) except ImportError: from urllib import urlencode + basestring = basestring # Python 2's `input` executes the input, whereas `raw_input` just returns the input try: