comparison rhodecode/lib/middleware/simplegit.py @ 3889:b84c83b651de beta

replace equality comparision to None
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 22 May 2013 03:15:44 +0200
parents 972ad33c5610
children f5a1314886ec
comparison
equal deleted inserted replaced
3888:7aa0ff5b4e09 3889:b84c83b651de
95 95
96 def is_git(environ): 96 def is_git(environ):
97 path_info = environ['PATH_INFO'] 97 path_info = environ['PATH_INFO']
98 isgit_path = GIT_PROTO_PAT.match(path_info) 98 isgit_path = GIT_PROTO_PAT.match(path_info)
99 log.debug('pathinfo: %s detected as GIT %s' % ( 99 log.debug('pathinfo: %s detected as GIT %s' % (
100 path_info, isgit_path != None) 100 path_info, isgit_path is not None)
101 ) 101 )
102 return isgit_path 102 return isgit_path
103 103
104 104
105 class SimpleGit(BaseVCSController): 105 class SimpleGit(BaseVCSController):