Skip to content

Commit

Permalink
Merge pull request #270 from bsturmfels/future
Browse files Browse the repository at this point in the history
This is already what is used in util.py and old stream.py. I don't see no reason not to do so, except maybe improving it by calling it from util as in the new stream.py
  • Loading branch information
RouxRC committed Dec 24, 2014
2 parents a7874c0 + 4073437 commit 7de8f17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions twitter/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@

from __future__ import print_function

from time import time
from random import getrandbits
import sys
from time import time

PY3 = sys.version_info[0] == 3

try:
import urllib.parse as urllib_parse
from urllib.parse import urlencode
PY3 = True
except ImportError:
import urllib2 as urllib_parse
from urllib import urlencode
PY3 = False

import hashlib
import hmac
Expand Down

0 comments on commit 7de8f17

Please sign in to comment.