[Python-checkins] r53322 - sandbox/trunk/import_in_py/importer.py

brett.cannon python-checkins at python.org
Tue Jan 9 20:57:46 CET 2007


Author: brett.cannon
Date: Tue Jan 9 20:57:46 2007
New Revision: 53322
Modified:
 sandbox/trunk/import_in_py/importer.py
Log:
Clarify an 'if' statement in _case_ok.
Modified: sandbox/trunk/import_in_py/importer.py
==============================================================================
--- sandbox/trunk/import_in_py/importer.py	(original)
+++ sandbox/trunk/import_in_py/importer.py	Tue Jan 9 20:57:46 2007
@@ -140,6 +140,10 @@
 check can be part of case check and thus cut down on stat calls?
 
 """
+ # If platform is not case-sensitive *or* the environment variable
+ # PYTHONCASEOK is defined, then os.path.exists already handled the case by
+ # either doing a case-sensitive check or from the user saying he does not
+ # want case-sensitivity, respectively.
 if sys.platform not in ('win32', 'mac', 'riscos', 'darwin', 'cygwin',
 'os2emx') or os.environ.get('PYTHONCASEOK'):
 return True


More information about the Python-checkins mailing list

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