diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index c5bc1eebd7d..a9cb5c5357b 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -981,7 +981,7 @@ is used when no command-line argument was present:: Providing ``default=argparse.SUPPRESS`` causes no attribute to be added if the -command-line argument was not present.:: +command-line argument was not present:: >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--foo', default=argparse.SUPPRESS) diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index f46bf66db2f..d965fa36b47 100644 --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -123,7 +123,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length :class:`~mmap.mmap` can also be used as a context manager in a :keyword:`with` - statement.:: + statement:: import mmap