Skip to content

Commit 9c5cf1b

Browse files
committed
pep8 need some spaces around operator
pep8 need some spaces around operator
1 parent 3ba4f5a commit 9c5cf1b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/matplotlib/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,9 @@ def _get_data_path():
664664
return path
665665

666666
if hasattr(__file__, 'decode'):
667-
_file=__file__.decode(sys.getfilesystemencoding())
667+
_file = __file__.decode(sys.getfilesystemencoding())
668668
else:
669-
_file=__file__
669+
_file = __file__
670670
path = os.sep.join([os.path.dirname(_file), 'mpl-data'])
671671
if os.path.isdir(path):
672672
return path
@@ -675,19 +675,19 @@ def _get_data_path():
675675
# so need to try something known to be in matplotlib, not basemap
676676
import matplotlib.afm
677677
if hasattr(matplotlib.afm.__file__, 'decode'):
678-
_file=matplotlib.afm.__file__.decode(sys.getfilesystemencoding())
678+
_file = matplotlib.afm.__file__.decode(sys.getfilesystemencoding())
679679
else:
680-
_file=matplotlib.afm.__file__
680+
_file = matplotlib.afm.__file__
681681
path = os.sep.join([os.path.dirname(_file), 'mpl-data'])
682682
if os.path.isdir(path):
683683
return path
684684

685685
# py2exe zips pure python, so still need special check
686686
if getattr(sys, 'frozen', None):
687687
if hasattr(sys.executable, 'decode'):
688-
_file=sys.executable.decode(sys.getfilesystemencoding())
688+
_file = sys.executable.decode(sys.getfilesystemencoding())
689689
else:
690-
_file=sys.executable
690+
_file = sys.executable
691691
exe_path = os.path.dirname(_file)
692692
path = os.path.join(exe_path, 'mpl-data')
693693
if os.path.isdir(path):

0 commit comments

Comments
 (0)