Move util.py to compatibility.py
authorPetr Viktorin <encukou@gmail.com>
Thu, 14 Apr 2011 10:46:12 +0000 (13:46 +0300)
committerPetr Viktorin <encukou@gmail.com>
Thu, 14 Apr 2011 10:46:12 +0000 (13:46 +0300)
pokedex/compatibility.py [moved from pokedex/util.py with 98% similarity]
pokedex/lookup.py
pokedex/struct/__init__.py

similarity index 98%
rename from pokedex/util.py
rename to pokedex/compatibility.py
index d9aec70..67eff35 100644 (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
index 8488f21..768a674 100644 (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
index 5b52539..b6a3e73 100644 (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):