-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Solves #1061 and #1656 #1663
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
Solves #1061 and #1656 #1663
Conversation
Thanks for contribution! However, the change makes errors. Please check the test result. |
else: | ||
filename = self.analyzer.srcname | ||
sourcename = u'%s:docstring of %s' % (filename, self.fullname) | ||
return u'%s:<docstring of %s>' % (filename, self.fullname) |
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.
This is the cause of the test failures: the angle brackets are added compared to the old return value.
I think it's better readable with angle brackets, but:
- test should be adapted
- angle brackets should also be added in the next line for consistency
Thanks Georg for finding the reason (i had no idea where to start searching). Yes, brackets might be more readable, but for me it works without them. |
Now the tests fail only on Python 3 where they say "nose.proxy.NameError: global name 'unicode' is not defined". Any suggestions how to solve this? |
sys.getfilesystemencoding(), 'replace') | ||
if not isinstance(self.analyzer.srcname, unicode): | ||
filename = unicode(self.analyzer.srcname, | ||
sys.getfilesystemencoding(), 'replace') |
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.
This 3 lines change is a cause of test failing on Py3. text_type
is a compatibility type for py2 unicode
and py3 str
. please revert this 3 lines.
Thanks, Takayuki, for your hint! |
Looks good to me now. |
BTW, now with git it's easier to remove unwanted changesets. Just to a |
Thanks, Georg, for your hint about |git rebase|. I tried it but without success... must say that this would have been my first rebase... details in my blog http://lino-framework.org/blog/2015/0105.html |
Well, looking at your blog entry, there are two snags:
|
Merged manually, thanks! |
See 21b8384 Note that it retained your author info, another nice bit in git. |
Nice, I am part of Sphinx's history :-) Thanks, Georg and Takayuki, for Luc On 06/01/15 19:19, Georg Brandl wrote:
|
This solves #1061 and #1656, at least for me and as far as i tried.
See also http://lino-framework.org/blog/2015/0103.html
Sorry for an accidental changeset (and a second one to revert it).