From ca2993a29694132f0b45e93953037b7d5a715e7a Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 14 Apr 2011 13:46:12 +0300 Subject: [PATCH] Move util.py to compatibility.py --- pokedex/{util.py => compatibility.py} | 5 ++++- pokedex/lookup.py | 2 +- pokedex/struct/__init__.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) rename pokedex/{util.py => compatibility.py} (98%) 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): -- 2.7.4