equal
deleted
inserted
replaced
609 def quote(s): |
609 def quote(s): |
610 return repr(str(s)) |
610 return repr(str(s)) |
611 |
611 |
612 def argtype(c, arg): |
612 def argtype(c, arg): |
613 if c == 'd': |
613 if c == 'd': |
614 return str(int(arg)) |
614 return '%d' % int(arg) |
615 elif c == 's': |
615 elif c == 's': |
616 return quote(arg) |
616 return quote(arg) |
617 elif c == 'r': |
617 elif c == 'r': |
618 parse(arg) # make sure syntax errors are confined |
618 parse(arg) # make sure syntax errors are confined |
619 return '(%s)' % arg |
619 return '(%s)' % arg |