Cleanup lints.

This commit is contained in:
Steve Pulec 2017-03-12 20:18:49 -04:00
parent c271e31745
commit 0e2fdf94f9
4 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,9 @@ init:
@python setup.py develop
@pip install -r requirements.txt
lint:
flake8 moto
test:
rm -f .coverage
rm -rf cover

View File

@ -365,7 +365,7 @@ class ResourceMap(collections.Mapping):
condition, self._parsed_resources, self.lazy_condition_map)
for condition_name in self.lazy_condition_map:
_ = self.lazy_condition_map[condition_name]
self.lazy_condition_map[condition_name]
def create(self):
self.load_mapping()

View File

@ -349,7 +349,6 @@ class NetworkInterfaceBackend(object):
return generic_filter(filters, enis)
class Instance(TaggedEC2Resource, BotoInstance):
def __init__(self, ec2_backend, image_id, user_data, security_groups, **kwargs):
super(Instance, self).__init__()

View File

@ -232,7 +232,6 @@ class IamResponse(BaseResponse):
template = self.response_template(USER_TEMPLATE)
return template.render(action='Create', user=user)
def get_user(self):
user_name = self._get_param('UserName')
user = iam_backend.get_user(user_name)