This commit is contained in:
Mattias Andrée 2012-08-18 17:42:36 +02:00
parent 2ff4e42e19
commit 5ff733fdda

View file

@ -93,6 +93,10 @@ class ponysay():
else: self.print_pony(args)
##
## Auxiliary methods
##
'''
Returns one .pony-file with full path, names is filter for names, also accepts filepaths
'''
@ -165,6 +169,10 @@ class ponysay():
return rc
##
## Listing methods
##
'''
Lists the available ponies
'''
@ -296,6 +304,13 @@ class ponysay():
print(pony)
##
## Displaying methods
##
'''
Print the pony with a speech or though bubble
'''
def print_pony(self, args):
if args.message == None:
msg = sys.stdin.read().strip()