summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pastepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastepy.py b/pastepy.py
index 23eb40e..38c7d1a 100644
--- a/pastepy.py
+++ b/pastepy.py
@@ -55,7 +55,7 @@ class Paste(object):
rendered.append(('Rendered markdown', 'md-render'))
if len(rendered):
self.lexers.append(('Rendered', rendered))
- self.lexers.append(('Others' if settings.categories else 'Syntax', sorted(lexers.items(), cmp = lambda a, b: cmp(a[0], b[0]))))
+ self.lexers.append(('Others' if settings.categories else 'Syntax', sorted(lexers.items(), key = lambda l: l[0].lower())))
self.formatter = CustomHtmlFormatter(linenos = 'table', lineanchors = 'line', anchorlinenos = True)
random.seed()