From: Petr Viktorin Date: Thu, 14 Apr 2011 10:46:12 +0000 (+0300) Subject: Move util.py to compatibility.py X-Git-Url: http://git.veekun.com/zzz-pokedex.git/commitdiff_plain/ca2993a29694132f0b45e93953037b7d5a715e7a Move util.py to compatibility.py --- diff --git a/pokedex/util.py b/pokedex/compatibility.py similarity index 98% rename from pokedex/util.py rename to pokedex/compatibility.py index d9aec70..67eff35 100644 --- a/pokedex/util.py +++ b/pokedex/compatibility.py @@ -1,4 +1,7 @@ -"""Functions missing from Python 2.5""" +"""Things missing from older versions of Python + +Currently these are functions missing from Python 2.5. +""" try: from itertools import permutations diff --git a/pokedex/lookup.py b/pokedex/lookup.py index 8488f21..768a674 100644 --- a/pokedex/lookup.py +++ b/pokedex/lookup.py @@ -14,7 +14,7 @@ from whoosh.qparser import QueryParser import whoosh.scoring import whoosh.spelling -from pokedex.util import namedtuple +from pokedex.compatibility import namedtuple from pokedex.db import connect import pokedex.db.tables as tables diff --git a/pokedex/struct/__init__.py b/pokedex/struct/__init__.py index 5b52539..b6a3e73 100644 --- a/pokedex/struct/__init__.py +++ b/pokedex/struct/__init__.py @@ -12,7 +12,7 @@ import struct from pokedex.db import tables from pokedex.formulae import calculated_hp, calculated_stat -from pokedex.util import namedtuple, permutations +from pokedex.compatibility import namedtuple, permutations from pokedex.struct._pokemon_struct import pokemon_struct def pokemon_prng(seed):