mirror of
https://github.com/erkin/ponysay.git
synced 2025-01-31 10:26:43 +01:00
Metadata.{getfitting ==> getFitting}
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
ecdac1b6a1
commit
7b5af293a6
2 changed files with 3 additions and 3 deletions
|
@ -133,7 +133,7 @@ class Metadata():
|
|||
|
||||
|
||||
@staticmethod
|
||||
def getfitting(fitting, requirement, file):
|
||||
def getFitting(fitting, requirement, file):
|
||||
'''
|
||||
Get ponies that fit the terminal
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue