I must have lot the brain cells that handle boolean logic

This commit is contained in:
Shane Caraveo 2011-01-05 16:38:09 -08:00
Родитель b0fa4f964f
Коммит aef218c592
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -33,7 +33,7 @@ class StaticURLParser(object):
if not path_info:
return self.add_slash(environ, start_response)
directory = "%s" % self.directory
if (not path_info.startswith('/%s/' % self.version) or version_re.match(path_info) is None) and directory == self.root_directory:
if not path_info.startswith('/%s/' % self.version) and version_re.match(path_info) is None and directory == self.root_directory:
directory = os.path.join(directory, self.version)
if path_info == '/':
# @@: This should obviously be configurable