Commit 8620a70b authored by Doug Greiman's avatar Doug Greiman

Slightly simplify code via rstrip()

parent 7b8b56fa
......@@ -1693,8 +1693,7 @@ class ZipProvider(EggProvider):
def _zipinfo_name(self, fspath):
# Convert a virtual filename (full path to file) into a zipfile subpath
# usable with the zipimport directory cache for our target archive
while fspath.endswith(os.sep):
fspath = fspath[:-1]
fspath = fspath.rstrip(os.sep)
if fspath == self.loader.archive:
return ''
if fspath.startswith(self.zip_pre):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment