diff options
| author | ?ric Araujo <merwok@netwok.org> | 2010-06-26 12:37:06 +0200 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2010-06-26 12:37:06 +0200 |
| commit | b50bbf4dd370debe603fadab3243ee9fb1783727 (patch) | |
| tree | c4822dc054a1ae168dfceed75aacbc4045f10379 /src/distutils2/compiler | |
| parent | bdc0c044f10ee2d74581799c4f1aed4f89bdec47 (diff) | |
| download | disutils2-b50bbf4dd370debe603fadab3243ee9fb1783727.tar.gz | |
s/klass/cls/g for PEP 8 and PEP 20 compliance
The preferred name for an object that is a class is cls.
Beautiful is better than ugly.
Diffstat (limited to 'src/distutils2/compiler')
| -rw-r--r-- | src/distutils2/compiler/ccompiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/distutils2/compiler/ccompiler.py b/src/distutils2/compiler/ccompiler.py index 5fdf0ee..abef054 100644 --- a/src/distutils2/compiler/ccompiler.py +++ b/src/distutils2/compiler/ccompiler.py @@ -1048,7 +1048,7 @@ def new_compiler(plat=None, compiler=None, verbose=0, dry_run=0, force=0): module_name = "distutils2.compiler." + module_name __import__ (module_name) module = sys.modules[module_name] - klass = vars(module)[class_name] + cls = vars(module)[class_name] except ImportError: raise DistutilsModuleError, \ "can't compile C/C++ code: unable to load module '%s'" % \ @@ -1061,7 +1061,7 @@ def new_compiler(plat=None, compiler=None, verbose=0, dry_run=0, force=0): # XXX The None is necessary to preserve backwards compatibility # with classes that expect verbose to be the first positional # argument. - return klass(None, dry_run, force) + return cls(None, dry_run, force) def gen_preprocess_options(macros, include_dirs): |
