diff options
author | David Robillard <d@drobilla.net> | 2016-08-16 14:00:42 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-17 16:57:25 -0400 |
commit | 03fdaf7792d9530a789f341e03ff57c13779304f (patch) | |
tree | 28bbce979ef972921903d75fd69475d86db1d714 | |
parent | 65667ef07b19b66086f0d5c1473f82a4805ce0cb (diff) | |
download | autowaf-03fdaf7792d9530a789f341e03ff57c13779304f.tar.gz autowaf-03fdaf7792d9530a789f341e03ff57c13779304f.tar.bz2 autowaf-03fdaf7792d9530a789f341e03ff57c13779304f.zip |
Tidy up lint
-rw-r--r-- | autowaf.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -11,7 +11,7 @@ import os import subprocess import sys -from waflib import Build, Configure, Context, Logs, Node, Options, Task, Utils +from waflib import Build, Logs, Options from waflib.TaskGen import feature, before, after global g_is_child @@ -130,8 +130,8 @@ def check_pkg(conf, name, **args): if args['uselib_store'].lower() in conf.env['AUTOWAF_LOCAL_LIBS']: return class CheckType: - OPTIONAL=1 - MANDATORY=2 + OPTIONAL = 1 + MANDATORY = 2 var_name = 'CHECKED_' + nameify(args['uselib_store']) check = not var_name in conf.env mandatory = not 'mandatory' in args or args['mandatory'] @@ -139,10 +139,10 @@ def check_pkg(conf, name, **args): # Re-check if version is newer than previous check checked_version = conf.env['VERSION_' + name] if checked_version and checked_version < args['atleast_version']: - check = True; + check = True if not check and mandatory and conf.env[var_name] == CheckType.OPTIONAL: # Re-check if previous check was optional but this one is mandatory - check = True; + check = True if check: found = None pkg_var_name = 'PKG_' + name.replace('-', '_') |