mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-01 12:31:10 +08:00
Be more explicit about configparser import
This commit is contained in:
1 parent
8860f8177b
commit
3d044af4da
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user