Skip to content

Commit

Permalink
Ignore a pylint error in TPR parser
Browse files Browse the repository at this point in the history
Pylint does not recognize the mangled attribute and thinks they are not
defined.
  • Loading branch information
jbarnoud authored and richardjgowers committed Dec 15, 2019
1 parent 592b413 commit 4adbd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/MDAnalysis/topology/tpr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _unpack_value(self, item_size, struct_template):
# methods defined in the base class.
# start_position = self._pos
# end_position = self._pos = start_position + item_size
start_position = self._Unpacker__pos
start_position = self._Unpacker__pos # pylint: disable=access-member-before-definition
end_position = self._pos = self._Unpacker__pos = start_position + item_size
content = self._buf[start_position:end_position]
if len(content) != item_size:
Expand Down

0 comments on commit 4adbd6c

Please sign in to comment.