Permalink
Browse files

web: true/fals are no python booleans

  • Loading branch information...
1 parent 246f0a9 commit 189cde5fdb27516addb7d584896c55382e45ab65 @billiob billiob committed Jun 26, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 amsn2/ui/front_ends/web/bend.py
@@ -10,17 +10,17 @@
def uri_path_is_safe(path):
if not BASEPATH and path[0] == '/':
- return false
+ return False
elif path[0:1] == '..':
- return false
+ return False
l = path.split('/')
b = [d for d in l if d == '..']
if len(b) >= len(l):
- return false
+ return False
- return true
+ return True
class TinyHTTPServer(object):

0 comments on commit 189cde5

Please sign in to comment.