Skip to content

Readability#3

Open
Bystroushaak wants to merge 3 commits into
ajtowns:masterfrom
Bystroushaak:readability
Open

Readability#3
Bystroushaak wants to merge 3 commits into
ajtowns:masterfrom
Bystroushaak:readability

Conversation

@Bystroushaak
Copy link
Copy Markdown

Hi.

I added tests and reformated code a little to improve readability, using PEP8. Also fixed corner case for python2 with Iterable import from collections.

@Bystroushaak
Copy link
Copy Markdown
Author

Fixed the merge conflicts.

@Visgean
Copy link
Copy Markdown

Visgean commented May 21, 2015

In the tests you have a typo, 'fist' should be 'first'...

@Bystroushaak
Copy link
Copy Markdown
Author

Yeah.

Comment thread test_odictliteral.py
def test_repr():
assert repr(odict()) == "odict()"
assert repr(odict["key": "val"]) == 'odict[key: val]'
assert repr(odict["k": "v", "x": "y"]) == 'odict[k: v, x: y]'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This test is wrong, the output should include quotes

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