From: Joe Wreschnig Date: Sat, 20 Mar 2010 07:27:01 +0000 (-0700) Subject: Fix Python 3 incompatibility. X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=43c03b517877aef0df8eb909d23109e401532cb5;p=python-bulletml.git Fix Python 3 incompatibility. --- 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