Skip to content

Commit

Permalink
Be more explicit about configparser import
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Jul 16, 2015
1 parent 8860f81 commit 3d044af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skimage/io/manage_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
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
Expand Down

0 comments on commit 3d044af

Please sign in to comment.