Skip to content

Commit b8e0e98

Browse files
committed
Rename variable from string to text. Use 'trimmed' to avoid masking the variable name.
1 parent f7dffd6 commit b8e0e98

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/configparser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,11 @@ def value(self):
571571
return self._value
572572

573573
@value.setter
574-
def value(self, string):
575-
self._value = string
576-
string = string.strip()
577-
self.clean = self.comments.strip(string)
578-
self.has_comments = string != self.clean
574+
def value(self, text):
575+
self._value = text
576+
trimmed = text.strip()
577+
self.clean = self.comments.strip(trimmed)
578+
self.has_comments = trimmed != self.clean
579579

580580

581581
class _CommentSpec:

0 commit comments

Comments
 (0)