diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-05-20 16:36:10 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-05-20 16:36:10 -0400 |
| commit | 2c16eb37822b3ebdb14ac36df26362636d0f5078 (patch) | |
| tree | e8fb881fad054cc2e17560427b83ceb1ab09cc4f | |
| parent | 84e9a7076a9098db1bd2647c3f056766bc7cee88 (diff) | |
| download | nova-2c16eb37822b3ebdb14ac36df26362636d0f5078.tar.gz nova-2c16eb37822b3ebdb14ac36df26362636d0f5078.tar.xz nova-2c16eb37822b3ebdb14ac36df26362636d0f5078.zip | |
minor cleanup
| -rw-r--r-- | nova/api/openstack/images.py | 3 | ||||
| -rw-r--r-- | nova/api/openstack/servers.py | 3 | ||||
| -rw-r--r-- | nova/tests/api/openstack/test_wsgi.py | 1 |
3 files changed, 0 insertions, 7 deletions
diff --git a/nova/api/openstack/images.py b/nova/api/openstack/images.py index 3376f358a..7f5551664 100644 --- a/nova/api/openstack/images.py +++ b/nova/api/openstack/images.py @@ -141,9 +141,6 @@ class ControllerV11(Controller): base_url = request.application_url return images_view.ViewBuilderV11(base_url) - def get_default_xmlns(self, req): - return common.XML_NS_V11 - def create_resource(version='1.0'): controller = { diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index bdd2960d9..313321d7d 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -703,9 +703,6 @@ class ControllerV11(Controller): raise exc.HTTPBadRequest(msg) return password - def get_default_xmlns(self, req): - return common.XML_NS_V11 - class ServerXMLDeserializer(wsgi.XMLDeserializer): """ diff --git a/nova/tests/api/openstack/test_wsgi.py b/nova/tests/api/openstack/test_wsgi.py index 6c57d3e4f..89603d82b 100644 --- a/nova/tests/api/openstack/test_wsgi.py +++ b/nova/tests/api/openstack/test_wsgi.py @@ -94,7 +94,6 @@ class XMLDictSerializerTest(test.TestCase): def test_xml(self): input_dict = dict(servers=dict(a=(2, 3))) expected_xml = '<serversxmlns="asdf"><a>(2,3)</a></servers>' - xmlns = "testing xmlns" serializer = wsgi.XMLDictSerializer(xmlns="asdf") result = serializer.serialize(input_dict) result = result.replace('\n', '').replace(' ', '') |
