From 326435da3f975b3999a8b5a3c1decdbca5e90c03 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Tue, 23 Feb 2016 14:44:43 +0100 Subject: [PATCH] Minor fix --- demo/moulinrouge.py | 13 ------------- pygal/graph/public.py | 3 ++- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/demo/moulinrouge.py b/demo/moulinrouge.py index 5dd6315..6201405 100755 --- a/demo/moulinrouge.py +++ b/demo/moulinrouge.py @@ -37,19 +37,6 @@ try: except: pass - -try: - import wsreload -except ImportError: - app.logger.debug('wsreload not found') -else: - url = "http://moulinrouge.l:21112/*" - - def log(httpserver): - app.logger.debug('WSReloaded after server restart') - wsreload.monkey_patch_http_server({'url': url}, callback=log) - app.logger.debug('HTTPServer monkey patched for url %s' % url) - try: from wdb.ext import WdbMiddleware, add_w_builtin except ImportError: diff --git a/pygal/graph/public.py b/pygal/graph/public.py index d2d582f..e0472e3 100644 --- a/pygal/graph/public.py +++ b/pygal/graph/public.py @@ -155,7 +155,8 @@ class PublicApi(BaseGraph): margin=5, min_scale=1, max_scale=2, - explicit_size=True + explicit_size=True, + no_data_text='' ) spark_options.update(kwargs) return self.render(**spark_options)