diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-07-31 14:51:14 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-07-31 14:51:14 -0400 |
| commit | 224defdd470ae9a987f4eca7da2a84da47f08c4d (patch) | |
| tree | dad02f6525fc1fe35eb5e3ac207ba921c9fd60ce /setuptools/_distutils/text_file.py | |
| parent | 5cef9ab648c49c891f434bc0914b5738d81db270 (diff) | |
| parent | 129480b92212c4821329caaa626ad3379478e001 (diff) | |
| download | python-setuptools-git-224defdd470ae9a987f4eca7da2a84da47f08c4d.tar.gz | |
Merge https://github.com/pypa/distutils into distutils-129480b
Diffstat (limited to 'setuptools/_distutils/text_file.py')
| -rw-r--r-- | setuptools/_distutils/text_file.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/_distutils/text_file.py b/setuptools/_distutils/text_file.py index 015d6802..cffcd099 100644 --- a/setuptools/_distutils/text_file.py +++ b/setuptools/_distutils/text_file.py @@ -4,7 +4,8 @@ provides the TextFile class, which gives an interface to text files that (optionally) takes care of stripping comments, ignoring blank lines, and joining lines with backslashes.""" -import sys, io +import sys +import io class TextFile: @@ -152,7 +153,7 @@ class TextFile: line.""" sys.stderr.write("warning: " + self.gen_error(msg, line) + "\n") - def readline(self): + def readline(self): # noqa: C901 """Read and return a single logical line from the current file (or from an internal buffer if lines have previously been "unread" with 'unreadline()'). If the 'join_lines' option is true, this |
