Skip to content

Commit

Permalink
pythongh-126259: Fix warning in doctest of sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Oct 31, 2024
1 parent dd3c0fa commit 2277eaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2442,6 +2442,7 @@ Some useful URI tricks include:
>>> con.execute("CREATE TABLE readonly(data)")
Traceback (most recent call last):
OperationalError: attempt to write a readonly database
>>> con.close()

* Do not implicitly create a new database file if it does not already exist;
will raise :exc:`~sqlite3.OperationalError` if unable to create a new file:
Expand Down

0 comments on commit 2277eaf

Please sign in to comment.