26 lines
669 B
Diff
26 lines
669 B
Diff
From 3378887bce94da5372e89c93f101ef9c3f8edff4 Mon Sep 17 00:00:00 2001
|
|
From: "Jason R. Coombs" <jaraco@jaraco.com>
|
|
Date: Sun, 7 Jul 2019 16:41:45 -0400
|
|
Subject: [PATCH] Strip the trailing slash from directory entries. Fixes #7.
|
|
|
|
---
|
|
zipp.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/zipp.py b/zipp.py
|
|
index 918e688..8cdfdc0 100644
|
|
--- a/zipp.py
|
|
+++ b/zipp.py
|
|
@@ -159,7 +159,7 @@ class Path:
|
|
|
|
@property
|
|
def parent(self):
|
|
- parent_at = posixpath.dirname(self.at)
|
|
+ parent_at = posixpath.dirname(self.at.rstrip('/'))
|
|
if parent_at:
|
|
parent_at += '/'
|
|
return self._next(parent_at)
|
|
--
|
|
2.33.0
|
|
|