aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-04-29 09:08:26 +0200
committercedricbonhomme <devnull@localhost>2010-04-29 09:08:26 +0200
commit3855b64d4d582273b33f16d4c35b4faf9238cfff (patch)
tree9b9ae9748b18b0bfe8de4193c280917d135fdfa4 /utils.py
parentNew regular expression to remove special characters (for instance &#8217;). (diff)
downloadnewspipe-3855b64d4d582273b33f16d4c35b4faf9238cfff.tar.gz
newspipe-3855b64d4d582273b33f16d4c35b4faf9238cfff.tar.bz2
newspipe-3855b64d4d582273b33f16d4c35b4faf9238cfff.zip
Minor bug fix and some improvements.
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index fc945f34..a18cdb4b 100755
--- a/utils.py
+++ b/utils.py
@@ -110,6 +110,8 @@ def create_histogram(words, file_name="./var/histogram.png"):
"""
Create a histogram.
"""
+ if "pylab" in IMPORT_ERROR:
+ return
length = 10
ind = pylab.arange(length) # abscissa
width = 0.35 # bars width
bgstack15