Skip to content

Commit

Permalink
Remove disused imports. Clean up namespace collision. Part of boto#478
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrowne committed Sep 26, 2012
1 parent e7fa74c commit d493259
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions boto/route53/connection.py
Expand Up @@ -20,18 +20,15 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#

import xml.sax
import time
import uuid
import urllib

import boto
from boto.connection import AWSAuthConnection
from boto import handler
from boto.resultset import ResultSet
import boto.jsonresponse
import exception
import hostedzone

HZXML = """<?xml version="1.0" encoding="UTF-8"?>
<CreateHostedZoneRequest xmlns="%(xmlns)s">
Expand Down Expand Up @@ -186,10 +183,10 @@ def create_hosted_zone(self, domain_name, caller_ref=None, comment=''):
'caller_ref': caller_ref,
'comment': comment,
'xmlns': self.XMLNameSpace}
xml = HZXML % params
xml_body = HZXML % params
uri = '/%s/hostedzone' % self.Version
response = self.make_request('POST', uri,
{'Content-Type': 'text/xml'}, xml)
{'Content-Type': 'text/xml'}, xml_body)
body = response.read()
boto.log.debug(body)
if response.status == 201:
Expand Down

0 comments on commit d493259

Please sign in to comment.