mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-13 12:40:24 +08:00
Merge pull request #1612 from blink1073/fix-manage-plugins
Be more explicit about configparser import
This commit is contained in:
@@ -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