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
DM-8560: Port sconsUtils to Python 3 #32
Conversation
Rather than reading lines and then converting to bytes.
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.
See comments.
python/lsst/sconsUtils/state.py
Outdated
try: | ||
from configparser import ConfigParser | ||
except ImportError: | ||
from ConfigParser import ConfigParser |
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.
These two bits are a py2/3 compatibility thing, no? Might be worth a comment to that effect so we can find it and cleanup when the "all-py3" days are upon us.
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.
Sure, although it's a completely standard compatibility shim.
python/lsst/sconsUtils/utils.py
Outdated
@@ -136,6 +136,7 @@ def libraryLoaderEnvironment(): | |||
# @brief Safe wrapper for running external programs, reading stdout, and sanitizing error messages. | |||
# | |||
# Note that the entire program output is returned, not just a single line. | |||
# Returns strings not bytes |
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.
Should this be a proper @return
docstring, with some more explanation?
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.
sconsUtils
code explicitly does not use standard docstrings. I think it's because pydoc can't parse the files (because the files can never be imported unless scons is active). I will fix the space problem though.
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.
Ah, I see what you mean. Doxygen @return. Ok, that is used elsewhere in sconsUtils.
No description provided.