-
Notifications
You must be signed in to change notification settings - Fork 82
Added lines storing #134
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
base: master
Are you sure you want to change the base?
Added lines storing #134
Conversation
02b6206 to
c356c36
Compare
src/configobj/__init__.py
Outdated
| self.extra_values = [] | ||
| self._created = False | ||
| # for lines | ||
| self.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.
a better name would be source_map and the comment is redundant.
generally, your PR is missing docs + tests.
src/configobj/__init__.py
Outdated
|
|
||
|
|
||
| def __setitem__(self, key, value, unrepr=False): | ||
| def __setitem__(self, key, value, unrepr=False, lines=None): |
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.
a better name would be position or line_range.
src/configobj/__init__.py
Outdated
| raise TypeError('Value is not a string "%s".' % value) | ||
| dict.__setitem__(self, key, value) | ||
|
|
||
| if(lines != None): |
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.
just if lines:, also this is not PEP8 compliant.
228bab4 to
0689f60
Compare
|
From what I can see, there's still PEP8 violations. Please use pylint, or pep8 to check your changes, and please do not squash changes, add more commits to your branch. |
84323b5 to
c2e1c47
Compare
c2e1c47 to
a3f80c6
Compare
No description provided.