From 86cb61dbe8691bb04da02007996b008bd1fa3091 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 1 Jul 2012 08:48:27 -0500 Subject: [PATCH] make pokecrystal compatible with python2.6 by default --- extras/romstr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):