Skip to content

Commit

Permalink
Update Python3 changes per review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Mar 20, 2021
1 parent f3b358a commit b4e4008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions awacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
valid_names = re.compile(r'^[a-zA-Z0-9]+$')


class AWSObject(object):
class AWSObject:
def __init__(self, name, type=None, dictname=None, props={}, **kwargs):
self.name = name
self.props = props
# Cache the keys for validity checks
self.propnames = list(props.keys())
self.propnames = props.keys()

# unset/None is also legal
if name and not valid_names.match(name):
Expand Down Expand Up @@ -131,7 +131,7 @@ def __init__(self, **kwargs):
sup.__init__(None, props=self.props, **kwargs)


class AWSHelperFn(object):
class AWSHelperFn:
def getdata(self, data):
if isinstance(data, AWSObject):
return data.name
Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def add_tests():
# Filter out all *.py files from the examples directory
examples = 'examples'
regex = re.compile(r'.py$', re.I)
example_filesnames = list(filter(regex.search, os.listdir(examples)))
example_filesnames = filter(regex.search, os.listdir(examples))

# Add new test functions to the TestExamples class
for f in example_filesnames:
Expand Down

0 comments on commit b4e4008

Please sign in to comment.