summaryrefslogtreecommitdiffstats
path: root/Doc/library/webbrowser.rst
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-05-22 08:27:40 (GMT)
committerHynek Schlawack <hs@ox.cx>2012-05-22 08:27:40 (GMT)
commite58ce01f303c8e0a7ddf008abc365cfe6fb4416c (patch)
tree4a06bd6c073810b2def83534787ec7d56fd672c6 /Doc/library/webbrowser.rst
parented8cf7a543b3ebe2d61c16d0f87e60029fd2c478 (diff)
downloadcpython-e58ce01f303c8e0a7ddf008abc365cfe6fb4416c.zip
cpython-e58ce01f303c8e0a7ddf008abc365cfe6fb4416c.tar.gz
cpython-e58ce01f303c8e0a7ddf008abc365cfe6fb4416c.tar.bz2
#14804: Remove [] around optional arguments with default values
Mostly just mechanical removal of []. In some rare cases I've pulled the default value up into the argument list.
Diffstat (limited to 'Doc/library/webbrowser.rst')
-rw-r--r--Doc/library/webbrowser.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/webbrowser.rst b/Doc/library/webbrowser.rst
index b978777..56c444d 100644
--- a/Doc/library/webbrowser.rst
+++ b/Doc/library/webbrowser.rst
@@ -48,7 +48,7 @@ The following exception is defined:
The following functions are defined:
-.. function:: open(url[, new=0[, autoraise=True]])
+.. function:: open(url, new=0, autoraise=True)
Display *url* using the default browser. If *new* is 0, the *url* is opened
in the same browser window if possible. If *new* is 1, a new browser window
@@ -178,7 +178,7 @@ Browser controllers provide these methods which parallel three of the
module-level convenience functions:
-.. method:: controller.open(url[, new=0[, autoraise=True]])
+.. method:: controller.open(url, new=0, autoraise=True)
Display *url* using the browser handled by this controller. If *new* is 1, a new
browser window is opened if possible. If *new* is 2, a new browser page ("tab")