1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

* fixed bug in date command completion

This commit is contained in:
Oleg 2010-11-07 23:36:18 +01:00
parent 88c0ec84ee
commit 33a7e40c18

View File

@ -13,8 +13,8 @@ class MyCmd(cmd.Cmd):
def do_help(self, line):
self.stdout.write("help\n")
def complete_date(self, text, line, begidx, endidx):
date = datetime.now().strftime("%Y-%M-%d %H:%m:%S")
def complete_date(self, text, line, begidx, endidm):
date = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
return ["%s\n" % date]
def do_exit(self, line):