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
Initial etesync support #614
Conversation
untitaker
commented
Mar 30, 2017
•
edited
edited
- tests leave repo in dirty state
@@ -40,7 +40,7 @@ class Item(object): | |||
VCARD''' | |||
|
|||
def __init__(self, raw): | |||
assert isinstance(raw, str) | |||
assert isinstance(raw, str), type(raw) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly does type(raw)
do here? I don't quite understand the syntax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type(raw)
is the error message. It's not related but should be there IMO either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, cool, didn't know the syntax.
IIRC, type(raw) will used as the AssertionError's parameter should
isinstance be Falseish
Quoting Hugo Osvaldo Barrera (2017-03-30 20:21:40)
… hobarrera commented on this pull request.
> @@ -40,7 +40,7 @@ class Item(object):
VCARD'''
def __init__(self, raw):
- assert isinstance(raw, str)
+ assert isinstance(raw, str), type(raw)
What exactly does `type(raw)` do here? I don't quite understand the syntax.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#614 (review)
|