summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-07-24 17:43:25 +0200
committercpopa <devnull@localhost>2014-07-24 17:43:25 +0200
commitf48bf5cf8590e895c5c38f813e6d02d94dfdca5c (patch)
treee69c0b85b84e7eb514e43d75aaea04e5b7bbffea
parent5ad9a5e19fb88804c3053a30edb03af812ce6e63 (diff)
downloadastroid-f48bf5cf8590e895c5c38f813e6d02d94dfdca5c.tar.gz
Use os.path.sep instead of hardcoding the separator.
-rw-r--r--modutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modutils.py b/modutils.py
index e781cb3..adeb9a4 100644
--- a/modutils.py
+++ b/modutils.py
@@ -496,10 +496,10 @@ def _search_zip(modpath, pic):
for filepath, importer in pic.items():
if importer is not None:
if importer.find_module(modpath[0]):
- if not importer.find_module('/'.join(modpath)):
+ if not importer.find_module(os.path.sep.join(modpath)):
raise ImportError('No module named %s in %s/%s' % (
'.'.join(modpath[1:]), filepath, modpath))
- return ZIPFILE, abspath(filepath) + '/' + '/'.join(modpath), filepath
+ return ZIPFILE, abspath(filepath) + os.path.sep + os.path.sep.join(modpath), filepath
raise ImportError('No module named %s' % '.'.join(modpath))
try: