-
-
Notifications
You must be signed in to change notification settings - Fork 533
Remove usage of py.builtin #617
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
Conversation
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.
Nicely done, thanks!
travis-ci is having a macos outage today, ok if I merge this? |
done :) |
Codecov Report
@@ Coverage Diff @@
## master #617 +/- ##
==========================================
+ Coverage 93.63% 93.64% +<.01%
==========================================
Files 11 11
Lines 2358 2361 +3
==========================================
+ Hits 2208 2211 +3
Misses 150 150
Continue to review full report at Codecov.
|
@@ -293,7 +295,10 @@ def initproj(request, tmpdir): | |||
def initproj(nameversion, filedefs=None, src_root="."): | |||
if filedefs is None: | |||
filedefs = {} | |||
if _istext(nameversion) or _isbytes(nameversion): | |||
if ( |
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.
there is string_types for matching both
as pointed out in #617 (review)
Refs #610
six
(for use ofsix.text_type
)py.builtin._totext
with explicit.decode(...)
_istext
and_isbytes
withisinstance
directly (bytes
is available in python2.6)py.builtin.print_
withprint
+from __future__ import print_function
py.builtin.callable
with justcallable
(available in python2.6)