Skip to content

Commit

Permalink
py2.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tal committed Apr 12, 2014
1 parent 4a5f45b commit 0f4d723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ def session_setup():
env_key = "TWIT_OAUTH"
if env_key in os.environ:
with open(os.path.expanduser("~/.pyweet"), "w") as api_file:
api_file.write("{}\n{}".format(*os.environ[env_key].split("|")))
api_file.write("{0}\n{1}".format(*os.environ[env_key].split("|")))

assert os.path.exists(os.path.expanduser("~/.pyweet")), "no user auth key"
2 changes: 1 addition & 1 deletion test/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import json
import pytest

if sys.version_info.major >= 3:
if sys.version_info > (3,):
from io import StringIO
else:
from StringIO import StringIO
Expand Down

0 comments on commit 0f4d723

Please sign in to comment.