commit 7997c40e94f54b1947a5a01acaff34e9c153da62
parent 620800c9da4dfc2f810cbcfb4bc6da191361978e
Author: lel <lel@envs.net>
Date: Sat, 28 Sep 2019 03:22:01 -0400
Simplify handling of going up from root
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/av98.py b/av98.py
@@ -116,7 +116,7 @@ class GeminiItem():
pathbits.pop()
# Don't try to go higher than root
if len(pathbits) == 1:
- return GeminiItem(self.url)
+ return self
# Get rid of bottom component
pathbits.pop()
new_path = os.path.join(*pathbits)