From bca09e16871d945f6415b582d8e6ab0c0ab07839 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 27 Sep 2012 20:07:21 -0400 Subject: [PATCH] Bugfix for Python 2.6. --- mwparserfromhell/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwparserfromhell/compat.py b/mwparserfromhell/compat.py index e558177..a1b6b8f 100755 --- a/mwparserfromhell/compat.py +++ b/mwparserfromhell/compat.py @@ -10,7 +10,7 @@ types are meant to be imported directly from within the parser's modules. import sys -py3k = sys.version_info.major == 3 +py3k = sys.version_info[0] == 3 if py3k: bytes = bytes