summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/grep.py6
-rw-r--r--Lib/lib-old/grep.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/Lib/grep.py b/Lib/grep.py
index 019d916..f466651 100644
--- a/Lib/grep.py
+++ b/Lib/grep.py
@@ -8,13 +8,13 @@ opt_show_where = 0
opt_show_filename = 0
opt_show_lineno = 1
-def grep(pat, +files):
+def 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)
-def emgrep(pat, +files):
+def emgrep(pat, *files):
return ggrep(RE_SYNTAX_EMACS, pat, files)
def ggrep(syntax, pat, files):
diff --git a/Lib/lib-old/grep.py b/Lib/lib-old/grep.py
index 019d916..f466651 100644
--- a/Lib/lib-old/grep.py
+++ b/Lib/lib-old/grep.py
@@ -8,13 +8,13 @@ opt_show_where = 0
opt_show_filename = 0
opt_show_lineno = 1
-def grep(pat, +files):
+def 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)
-def emgrep(pat, +files):
+def emgrep(pat, *files):
return ggrep(RE_SYNTAX_EMACS, pat, files)
def ggrep(syntax, pat, files):