-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
added TRUFFLE_TEST distribution #107
Conversation
9a3230c
to
a381c80
Compare
/cc @rschatz |
lgtm |
for prop in properties[enum]: | ||
lines.append(newEnum + prop) | ||
|
||
content = '\n'.join(lines) |
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.
Please use os.linesep instead of '\n'
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.
Really? That means the content of the jar file will be different depending on the platform where it was built. Isn't the jar file supposed to be platform independent?
(but probably it doesn't make any difference, the code that reads it should be robust for different line endings anyway...)
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.
Properties.store0
uses the platform dependent line separator. On the other hand, when loading a properties file, Java handles both. In any case, I will implement your request Christian.
a381c80
to
d4d4ff2
Compare
if metainfFile: | ||
properties = self.settings.setdefault(metainfFile, {}) | ||
for line in contents.strip().split(os.linesep): | ||
if not line.startswith('#'): |
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.
I think we shouldn't rely on the file to have windows line endings on windows.
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.
Good catch - will fix.
No description provided.