Skip to content

Instantly share code, notes, and snippets.

@hdknr
Created October 3, 2009 19:48
Show Gist options
  • Save hdknr/200833 to your computer and use it in GitHub Desktop.
Save hdknr/200833 to your computer and use it in GitHub Desktop.
class EC2Object(object):
def __init__(self, connection=None):
self.connection = connection
if self.connection and hasattr(self.connection, 'region'):
self.region = connection.region
else:
self.region = None
def startElement(self, name, attrs, connection):
return None
def endElement(self, name, value, connection):
setattr(self, name, value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment