]> Savannah Git Hosting - gnulib.git/commitdiff
vfs: normalize file path after concatenation
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 30 Jun 2018 13:30:26 +0000 (16:30 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 30 Jun 2018 13:30:26 +0000 (16:30 +0300)
pygnulib/vfs.py

index 395af9843026377efc4c9d5dddb7e7d5c04a6236..fb6b458ed0838cfe5da23258498e43d3c466514f 100644 (file)
@@ -68,7 +68,7 @@ class BaseVFS:
                 part = self.__table[part]
                 replaced = True
             parts += [part]
-        return _os.path.sep.join(parts)
+        return _os.path.normpath(_os.path.sep.join(parts))
 
 
     def __setitem__(self, src, dst):