[Python-checkins] r68047 - sandbox/trunk/pep0/pep0/pep.py

benjamin.peterson python-checkins at python.org
Tue Dec 30 00:19:59 CET 2008


Author: benjamin.peterson
Date: Tue Dec 30 00:19:59 2008
New Revision: 68047
Log:
clearer code
Modified:
 sandbox/trunk/pep0/pep0/pep.py
Modified: sandbox/trunk/pep0/pep0/pep.py
==============================================================================
--- sandbox/trunk/pep0/pep0/pep.py	(original)
+++ sandbox/trunk/pep0/pep0/pep.py	Tue Dec 30 00:19:59 2008
@@ -149,9 +149,7 @@
 current_header, required = header_order.next()
 while header_name != current_header and not required:
 current_header, required = header_order.next()
- if header_name == current_header:
- continue
- else:
+ if header_name != current_header:
 raise ValueError("for the PEP at %s, did not deal with "
 "%r before having to handle %r" % (pep_file.name,
 header_name, current_header))


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /