From 42babbe76795be3a9d17c063806182c4314afc73 Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Wed, 23 Oct 2013 13:03:49 -0400 Subject: [PATCH] * Add "global variable" statement. --- text_tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/text_tools.py b/text_tools.py index becdb9d..71f9aed 100644 --- a/text_tools.py +++ b/text_tools.py @@ -161,6 +161,7 @@ def str_fmt_heading(fmt): # #_str_fmt_heading_rx = None # only for development purposes import re + global _str_fmt_heading_rx if _str_fmt_heading_rx == None: # Because of complicated regex, I verbosely write it out here: _str_fmt_heading_rx = re.compile(r"""