Be more explicit about configparser import

This commit is contained in:
Steven Silvester
2015-07-15 21:22:41 -05:00
parent 8860f8177b
commit 3d044af4da
+3 -2
View File
@@ -15,10 +15,11 @@ can be multiple states for a given plugin:
loaded explicitly by the user.
"""
import sys
try:
if sys.version.startswith('3'):
from configparser import ConfigParser # Python 3
except ImportError:
else:
from ConfigParser import ConfigParser # Python 2
import os.path