From 0de772fecf3440de143373cc0e069ff86d1e1b14 Mon Sep 17 00:00:00 2001 From: Krsna Mahapatra Date: Mon, 21 Oct 2019 13:44:16 -0700 Subject: [PATCH] Change the underscore deprecation into a informative warning instead --- tile_generator/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile_generator/config.py b/tile_generator/config.py index daaf85ab..9f2203ce 100644 --- a/tile_generator/config.py +++ b/tile_generator/config.py @@ -82,7 +82,7 @@ def _base64_img(image): # This is temporary until next major release def show_warning(thing): print() - print('DeprecationWarning: %s expected, got %s !!!' % (thing.replace('-', '_'), thing)) + print('Warning: Consider changing %s to %s. Having "-" in the names can lead to subtle bugs in the tile when converting names to bash variables that expect underscores.' % (thing, thing.replace('-', '_'))) print()