From f9f5e856167df245c8b3831f953985583673d3e4 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Tue, 22 Sep 2015 07:08:21 +0200 Subject: [PATCH] Indentation issues --- waflib/Tools/msvc.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/waflib/Tools/msvc.py b/waflib/Tools/msvc.py index c220f3f9..3bb1a9a9 100644 --- a/waflib/Tools/msvc.py +++ b/waflib/Tools/msvc.py @@ -328,8 +328,8 @@ def get_compiler_env(conf, compiler, version, bat_target, bat, select=None): """ Gets the compiler environment variables as a tuple. Evaluation is eager by default. If set to lazy with ``--msvc_lazy_autodetect`` or ``env.MSVC_LAZY_AUTODETECT`` - the environment is evaluated when the tuple is destructured or iterated. This means - destructuring can throw :py:class:`conf.errors.ConfigurationError`. + the environment is evaluated when the tuple is destructured or iterated. This means + destructuring can throw :py:class:`conf.errors.ConfigurationError`. :param conf: configuration context to use to eventually get the version environment :param compiler: compiler name @@ -350,26 +350,26 @@ def get_compiler_env(conf, compiler, version, bat_target, bat, select=None): class lazytup(object): """ A tuple that evaluates its elements from a function when iterated or destructured. - + :param fn: thunk to evaluate the tuple on demand :param lazy: whether to delay evaluation or evaluate in the constructor :param default: optional default for :py:func:`repr` if it should not evaluate """ - def __init__(self, fn, lazy=True, default=None): + def __init__(self, fn, lazy=True, default=None): self.fn = fn self.default = default if not lazy: self.evaluate() - def __len__(self): + def __len__(self): self.evaluate() - return len(self.value) - def __iter__(self): + return len(self.value) + def __iter__(self): self.evaluate() - for i, v in enumerate(self.value): - yield v - def __getitem__(self, i): + for i, v in enumerate(self.value): + yield v + def __getitem__(self, i): self.evaluate() - return self.value[i] + return self.value[i] def __repr__(self): if hasattr(self, 'value'): return repr(self.value) @@ -594,9 +594,9 @@ def gather_intel_composer_versions(conf, versions): if (r'if exist "%VS110COMNTOOLS%..\IDE\VSWinExpress.exe"' in Utils.readf(compilervars_arch) and not os.path.exists(vs_express_path) and not os.path.exists(dev_env_path)): Logs.warn(('The Intel compilervar_arch.bat only checks for one Visual Studio SKU ' - '(VSWinExpress.exe) but it does not seem to be installed at %r. ' - 'The intel command line set up will fail to configure unless the file %r' - 'is patched. See: %s') % (vs_express_path, compilervars_arch, patch_url)) + '(VSWinExpress.exe) but it does not seem to be installed at %r. ' + 'The intel command line set up will fail to configure unless the file %r' + 'is patched. See: %s') % (vs_express_path, compilervars_arch, patch_url)) except WindowsError: pass major = version[0:2]