Fix Python 3 incompatibility.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 20 Mar 2010 07:27:01 +0000 (00:27 -0700)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 20 Mar 2010 07:27:01 +0000 (00:27 -0700)
README.txt
bulletml/parser.py

index 238cce1..b64221c 100644 (file)
@@ -24,6 +24,9 @@ respawn the bullet pattern, and Enter to restart it.
 
 Installing
 ----------
+BulletML requires Python 2.6 or later. It should work on Python 3. It
+has no dependencies outside the CPython standard library.
+
 $ ./setup.py build
 $ sudo ./setup.py install
 
index b2e078b..86dfe3c 100644 (file)
@@ -774,7 +774,7 @@ class BulletML(object):
         else:
             try:
                 return yaml.load(source)
-            except Exception, exc:
+            except Exception as exc:
                 raise ParseError(str(exc))
 
     @classmethod