Commit 0c2c692b authored by Raymond Hettinger's avatar Raymond Hettinger

Minor formatting fix=up

parent 3395fda9
...@@ -337,7 +337,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False): ...@@ -337,7 +337,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False):
seen = set() seen = set()
for name in field_names: for name in field_names:
if name.startswith('_') and not rename: if name.startswith('_') and not rename:
raise ValueError('Field names cannot start with an underscore:' raise ValueError('Field names cannot start with an underscore: '
'%r' % name) '%r' % name)
if name in seen: if name in seen:
raise ValueError('Encountered duplicate field name: %r' % name) raise ValueError('Encountered duplicate field name: %r' % name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment