Move util.py to compatibility.py

This commit is contained in:
Petr Viktorin 2011-04-14 13:46:12 +03:00 committed by Eevee
parent 3d25d125f4
commit dd89c811b8
3 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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):