Mercurial > kallithea
comparison rhodecode/bin/ldap_sync.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 | f37d7514e7ab |
children | ffd45b185016 |
comparison
equal
deleted
inserted
replaced
3888:7aa0ff5b4e09 | 3889:b84c83b651de |
---|---|
77 response = json.load(response) | 77 response = json.load(response) |
78 | 78 |
79 if uid != response["id"]: | 79 if uid != response["id"]: |
80 raise InvalidResponseIDError("UUID does not match.") | 80 raise InvalidResponseIDError("UUID does not match.") |
81 | 81 |
82 if response["error"] != None: | 82 if response["error"] is not None: |
83 raise RhodecodeResponseError(response["error"]) | 83 raise RhodecodeResponseError(response["error"]) |
84 | 84 |
85 return response["result"] | 85 return response["result"] |
86 | 86 |
87 def create_group(self, name, active=True): | 87 def create_group(self, name, active=True): |