From 43c03b517877aef0df8eb909d23109e401532cb5 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Sat, 20 Mar 2010 00:27:01 -0700 Subject: [PATCH] Fix Python 3 incompatibility. --- README.txt | 3 +++ bulletml/parser.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 238cce1..b64221c 100644 --- a/README.txt +++ b/README.txt @@ -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 diff --git a/bulletml/parser.py b/bulletml/parser.py index b2e078b..86dfe3c 100644 --- a/bulletml/parser.py +++ b/bulletml/parser.py @@ -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 -- 2.30.2