Remove StringIO import fallback
...since io exists in all supported Python versions. As mentioned in Issue #67.
This commit is contained in:
parent
4deceb6e8e
commit
422a8d9f61
1 changed files with 1 additions and 4 deletions
|
@ -3,14 +3,11 @@ auth.py : OAuth Config File Parser
|
|||
"""
|
||||
from __future__ import unicode_literals
|
||||
import os
|
||||
import io
|
||||
try:
|
||||
from configparser import ConfigParser # Python3
|
||||
except ImportError:
|
||||
from ConfigParser import SafeConfigParser as ConfigParser # Python2
|
||||
try:
|
||||
import io # Python3
|
||||
except ImportError: # pragma: no cover
|
||||
import StringIO as io # Python2
|
||||
|
||||
class Auth(object):
|
||||
"""OAuth secrets"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue