changeset 131:2d944e8f24e9

py3
author Jeff Hammel <k0scist@gmail.com>
date Mon, 28 Dec 2020 19:22:23 +0000
parents fbcbcd36329e
children bda88f101ba9
files bitsyblog/bitsyblog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/bitsyblog.py	Tue Nov 03 15:04:10 2020 -0800
+++ b/bitsyblog/bitsyblog.py	Mon Dec 28 19:22:23 2020 +0000
@@ -443,8 +443,8 @@
     ### methods for linking and URLs
 
     def link(self, request, path='', permanant=False):
-        if isinstance(path, basestring):
-            path = [ path ]
+        if isinstance(path, str):
+            path = [path]
         if not path:
             path = ['']
         path = [ i.strip('/') for i in path ]