Metadata.{getfitting ==> getFitting}

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-08-12 07:57:07 +02:00
parent ecdac1b6a1
commit 7b5af293a6
2 changed files with 3 additions and 3 deletions

View file

@ -133,7 +133,7 @@ class Metadata():
@staticmethod
def getfitting(fitting, requirement, file):
def getFitting(fitting, requirement, file):
'''
Get ponies that fit the terminal

View file

@ -513,11 +513,11 @@ class Ponysay():
if os.path.exists(ponydir + 'widths'):
fitw = set()
with open(ponydir + 'widths', 'rb') as file:
Metadata.getfitting(fitw, termw, file)
Metadata.getFitting(fitw, termw, file)
if os.path.exists(ponydir + ('onlyheights' if self.ponyonly else 'heights')):
fith = set()
with open(ponydir + ('onlyheights' if self.ponyonly else 'heights'), 'rb') as file:
Metadata.getfitting(fith, termh, file)
Metadata.getFitting(fith, termh, file)
for ponyfile in oldponies.values():
if ponyfile.startswith(ponydir):
pony = ponyfile[len(ponydir) : -5]