Skip to content

Commit a098e69

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

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
@@ -570,11 +570,11 @@ def value(self):
570570
return self._value
571571

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

579579

580580
class _CommentSpec:

0 commit comments

Comments
 (0)