summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-07-01 08:48:27 -0500
committerBryan Bishop <kanzure@gmail.com>2012-07-01 08:48:27 -0500
commit86cb61dbe8691bb04da02007996b008bd1fa3091 (patch)
tree75517fb9382f7f5c66f2528e6e6c6f87d9c9fedd
parent58c696cfd3a024751d133ed9a9b6809b3a0ff36c (diff)
make pokecrystal compatible with python2.6 by default
-rw-r--r--extras/romstr.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/romstr.py b/extras/romstr.py
index 967e19c3c..b5e7d5ba8 100644
--- a/extras/romstr.py
+++ b/extras/romstr.py
@@ -23,7 +23,8 @@ class RomStr(str):
"""
def __init__(self, *args, **kwargs):
- self.load_labels()
+ if "labels" in kwargs.keys() and kwargs["labels"] == True:
+ self.load_labels()
str.__init__(self)
def __repr__(self):