aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@dev.westell.com>2010-02-22 23:37:55 -0500
committerWaylan Limberg <waylan@dev.westell.com>2010-02-22 23:37:55 -0500
commita7844d9eb42c2786d5809443b5a9c3cc1dae0788 (patch)
treeb5b88ecc8db8620e2acb63705cf9180f95327499
parentd2db82ed13c7cdd52a51c845d0ec047f52d85982 (diff)
downloadmarkdown-a7844d9eb42c2786d5809443b5a9c3cc1dae0788.tar.gz
markdown-a7844d9eb42c2786d5809443b5a9c3cc1dae0788.tar.bz2
markdown-a7844d9eb42c2786d5809443b5a9c3cc1dae0788.zip
Fixed some code that wasn't Python 2.4 compatible.
-rw-r--r--markdown/extensions/fenced_code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/fenced_code.py b/markdown/extensions/fenced_code.py
index 2b03bbc..23dc7b5 100644
--- a/markdown/extensions/fenced_code.py
+++ b/markdown/extensions/fenced_code.py
@@ -124,7 +124,7 @@ class FencedBlockPreprocessor(markdown.preprocessors.Preprocessor):
linenos=self.codehilite_conf['force_linenos'][0],
css_class=self.codehilite_conf['css_class'][0],
style=self.codehilite_conf['pygments_style'][0],
- lang=(m.group('lang') if m.group('lang') else None),
+ lang=(m.group('lang') or None),
noclasses=self.codehilite_conf['noclasses'][0])
code = highliter.hilite()