[Python-checkins] cpython: Replace trailing comments with block-level comments
jason.coombs
python-checkins at python.org
Fri Oct 14 14:54:24 EDT 2016
https://hg.python.org/cpython/rev/50f0ae35df51
changeset: 104492:50f0ae35df51
user: Jason R. Coombs <jaraco at jaraco.com>
date: Fri Oct 14 14:10:07 2016 -0400
summary:
Replace trailing comments with block-level comments
files:
Lib/distutils/command/sdist.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -261,11 +261,13 @@
# getting distribution.data_files
if self.distribution.has_data_files():
for item in self.distribution.data_files:
- if isinstance(item, str): # plain file
+ if isinstance(item, str):
+ # plain file
item = convert_path(item)
if os.path.isfile(item):
self.filelist.append(item)
- else: # a (dirname, filenames) tuple
+ else:
+ # a (dirname, filenames) tuple
dirname, filenames = item
for f in filenames:
f = convert_path(f)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list