summaryrefslogtreecommitdiffstats
path: root/Lib/lib-old/grep.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-04-06 14:03:53 (GMT)
committerGuido van Rossum <guido@python.org>1992-04-06 14:03:53 (GMT)
commit6a1f08942002a7b55689e714460057e929788ad2 (patch)
tree836a6baeaddcc6225a14f7beebd1e54c361398ce /Lib/lib-old/grep.py
parentb59cdd43562b6713fcf1227067ddde77a3868ac8 (diff)
downloadcpython-6a1f08942002a7b55689e714460057e929788ad2.zip
cpython-6a1f08942002a7b55689e714460057e929788ad2.tar.gz
cpython-6a1f08942002a7b55689e714460057e929788ad2.tar.bz2
Use *args syntax instead of +args
Diffstat (limited to 'Lib/lib-old/grep.py')
-rw-r--r--Lib/lib-old/grep.py6
1 files changed, 3 insertions, 3 deletions
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):