Use *args syntax instead of +args

This commit is contained in:
Guido van Rossum 1992-04-06 14:03:53 +00:00
parent b59cdd4356
commit 6a1f089420
2 changed files with 6 additions and 6 deletions

View File

@ -8,13 +8,13 @@ opt_show_where = 0
opt_show_filename = 0 opt_show_filename = 0
opt_show_lineno = 1 opt_show_lineno = 1
def grep(pat, +files): def grep(pat, *files):
return ggrep(RE_SYNTAX_GREP, pat, files) return ggrep(RE_SYNTAX_GREP, pat, files)
def egrep(pat, +files): def egrep(pat, *files):
return ggrep(RE_SYNTAX_EGREP, pat, files) return ggrep(RE_SYNTAX_EGREP, pat, files)
def emgrep(pat, +files): def emgrep(pat, *files):
return ggrep(RE_SYNTAX_EMACS, pat, files) return ggrep(RE_SYNTAX_EMACS, pat, files)
def ggrep(syntax, pat, files): def ggrep(syntax, pat, files):

View File

@ -8,13 +8,13 @@ opt_show_where = 0
opt_show_filename = 0 opt_show_filename = 0
opt_show_lineno = 1 opt_show_lineno = 1
def grep(pat, +files): def grep(pat, *files):
return ggrep(RE_SYNTAX_GREP, pat, files) return ggrep(RE_SYNTAX_GREP, pat, files)
def egrep(pat, +files): def egrep(pat, *files):
return ggrep(RE_SYNTAX_EGREP, pat, files) return ggrep(RE_SYNTAX_EGREP, pat, files)
def emgrep(pat, +files): def emgrep(pat, *files):
return ggrep(RE_SYNTAX_EMACS, pat, files) return ggrep(RE_SYNTAX_EMACS, pat, files)
def ggrep(syntax, pat, files): def ggrep(syntax, pat, files):