diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-07-26 20:12:18 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-07-26 20:12:18 +0000 |
| commit | ef4f5b21d7917eacd1d07b7a61f51f0d3d7654bf (patch) | |
| tree | f4652ea05fdd48485a81c81524a5bea64e2b57bb /nova/api | |
| parent | 275843d5d549989c12599d870274b6359816bbd4 (diff) | |
| parent | 6c084991bfdafda7d75d0a49d4359b42b9c6451f (diff) | |
| download | nova-ef4f5b21d7917eacd1d07b7a61f51f0d3d7654bf.tar.gz nova-ef4f5b21d7917eacd1d07b7a61f51f0d3d7654bf.tar.xz nova-ef4f5b21d7917eacd1d07b7a61f51f0d3d7654bf.zip | |
Merge "Avoid using 'is' operator when comparing strings"
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/__init__.py b/nova/api/openstack/__init__.py index a2f73e852..a5274e03b 100644 --- a/nova/api/openstack/__init__.py +++ b/nova/api/openstack/__init__.py @@ -80,7 +80,7 @@ class FaultWrapper(base_wsgi.Middleware): class APIMapper(routes.Mapper): def routematch(self, url=None, environ=None): - if url is "": + if url == "": result = self._match("", environ) return result[0], result[1] return routes.Mapper.routematch(self, url, environ) |
