From: Jeremy Stanley Date: Wed, 1 Aug 2012 11:28:59 +0000 (+0000) Subject: Work around lack of dict_keys index in data loader X-Git-Tag: 0.0.1~275 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=e081b5e66fd88d613a9debc0f4e95feb18041ccf Work around lack of dict_keys index in data loader * lib/mudpy/data.py: In Python 3000, dict.keys() returns a dict_keys type which is not indexed, so work around it by converting to a list anywhere we attempt to access a key by ordered index. --- diff --git a/lib/mudpy/data.py b/lib/mudpy/data.py index cdb114f..4553c7b 100644 --- a/lib/mudpy/data.py +++ b/lib/mudpy/data.py @@ -227,8 +227,9 @@ def find_file( # if there's only one file loaded, try to work around a chicken