Remove StringIO import fallback

...since io exists in all supported Python versions.
As mentioned in Issue #67.
This commit is contained in:
sneakypete81 2013-12-07 16:33:39 +00:00
parent 4deceb6e8e
commit 422a8d9f61

View file

@ -3,14 +3,11 @@ auth.py : OAuth Config File Parser
""" """
from __future__ import unicode_literals from __future__ import unicode_literals
import os import os
import io
try: try:
from configparser import ConfigParser # Python3 from configparser import ConfigParser # Python3
except ImportError: except ImportError:
from ConfigParser import SafeConfigParser as ConfigParser # Python2 from ConfigParser import SafeConfigParser as ConfigParser # Python2
try:
import io # Python3
except ImportError: # pragma: no cover
import StringIO as io # Python2
class Auth(object): class Auth(object):
"""OAuth secrets""" """OAuth secrets"""