Skip to content

Conversation

@rajumsys
Copy link
Contributor

@rajumsys rajumsys commented Mar 2, 2017

Resolves #138

{'key': 'value'},
{'address': {'email': 'foobar'}}]

results = t._translate_keys(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this testing differently than the above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wanted to test a different data structure but looks like redundant. i've removed it.


def _extract_recipients(self, recipients):

if not (isinstance(recipients, list) or isinstance(recipients, dict)):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can pass a tuple as the second argument to isinstance like so:

isinstance(recipients, (list, dict))

@rajumsys
Copy link
Contributor Author

rajumsys commented Mar 6, 2017

@richleland done with requested changes

@rajumsys rajumsys merged commit 266b3a7 into master Mar 7, 2017
@richleland richleland deleted the issue138 branch March 8, 2017 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants