diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-08 14:29:29 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-08 14:29:29 +0200 |
| commit | c0136cf35885e1984fb6fce548dd3628860459a1 (patch) | |
| tree | ec3a6c59da5733c1b311ff6b6d5bdf358f4ab15f | |
| parent | c3d7a48d394c9f903ac1b19bf70c88ba9cc59a9f (diff) | |
Make warning format less odd.
| -rw-r--r-- | kconfiglib.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index fb5b489..85189df 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1217,16 +1217,17 @@ class Config(object): stmt.is_from_env = True if env_var not in os.environ: - self._warn(""" -The symbol {0} references the non-existent environment variable {1} and will -get the empty string as its value. - -If you're using kconfiglib via 'make (i)scriptconfig' it should have set up the -environment correctly for you. If you still got this message, that might be an -error, and you should email ulfalizer a.t Google's email service.""" + self._warn("The symbol {0} references the " + "non-existent environment variable {1} and " + "will get the empty string as its value. " + "If you're using kconfiglib via " + "'make (i)scriptconfig', it should have " + "set up the environment correctly for you. " + "If you still got this message, that " + "might be an error, and you should email " + "ulfalizer a.t Google's email service.""" .format(stmt.name, env_var), - filename, - linenr) + filename, linenr) stmt.cached_val = "" else: |
