Skip to content

Commit

Permalink
Change the underscore deprecation into a informative warning instead
Browse files Browse the repository at this point in the history
  • Loading branch information
keshto committed Oct 21, 2019
1 parent c005cf3 commit 0de772f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tile_generator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 0de772f

Please sign in to comment.