mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Move util.py to compatibility.py
This commit is contained in:
parent
3d25d125f4
commit
dd89c811b8
3 changed files with 6 additions and 3 deletions
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue