Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing comma in single-element tuple. #1

Merged
merged 1 commit into from
Mar 5, 2014

Conversation

avoidscorn
Copy link

Failing test case:

from pretty import pprint
pprint(object())

results in:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "$PREFIX/lib/python3.2/site-packages/pretty.py", line 106, in pprint
    printer.pretty(obj)
  File "$PREFIX/lib/python3.2/site-packages/pretty.py", line 299, in pretty
    return _default_pprint(obj, self, cycle)
  File "$PREFIX/lib/python3.2/site-packages/pretty.py", line 397, in _default_pprint
    if getattr(klass, '__repr__', None) not in _baseclass_reprs:
TypeError: argument of type 'wrapper_descriptor' is not iterable

mgrandi added a commit that referenced this pull request Mar 5, 2014
Add missing comma in single-element tuple.
@mgrandi mgrandi merged commit 1c7aaa2 into mgrandi:master Mar 5, 2014
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.

2 participants