diff piecrust/uriutil.py @ 6:f5ca5c5bed85

More Python 3 fixes, modularization, and new unit tests.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 16 Aug 2014 08:15:30 -0700
parents 474c9882decf
children 30a42341cfa8
line wrap: on
line diff
--- a/piecrust/uriutil.py	Mon Aug 11 22:36:47 2014 -0700
+++ b/piecrust/uriutil.py	Sat Aug 16 08:15:30 2014 -0700
@@ -38,7 +38,7 @@
 
 
 def parse_uri(routes, uri):
-    if string.find(uri, '..') >= 0:
+    if uri.find('..') >= 0:
         raise UriError(uri)
 
     page_num = 1