diff --git a/README.md b/README.md index f6bb61e..fbd6475 100644 --- a/README.md +++ b/README.md @@ -1884,7 +1884,7 @@ SQLite ```python import sqlite3 = sqlite3.connect() # Opens existing or new file. Also ':memory:'. -.close() # Closes the connection. +.close() # Closes connection. Discards uncommitted data. ``` ### Read @@ -2267,7 +2267,7 @@ log.basicConfig( * **Parent logger can be specified by naming the child logger `'.'`.** * **If logger doesn't have a set level it inherits it from the first ancestor that does.** * **Formatter also accepts: pathname, filename, funcName, lineno, thread and process.** -* **A `'handlers.RotatingFileHandler'` creates and deletes log files based on 'maxBytes' and 'backupCount' arguments.** +* **A `'log.handlers.RotatingFileHandler'` creates and deletes log files based on 'maxBytes' and 'backupCount' arguments.** #### Creates a logger that writes all messages to file and sends them to the root's handler that prints warnings or higher: ```python diff --git a/index.html b/index.html index 4ad272f..778fc04 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -1563,7 +1563,7 @@ CompletedProcess(args=['bc', #SQLite

A server-less database engine that stores each database into a separate file.

import sqlite3
 <conn> = sqlite3.connect(<path>)                # Opens existing or new file. Also ':memory:'.
-<conn>.close()                                  # Closes the connection.
+<conn>.close()                                  # Closes connection. Discards uncommitted data.
 
@@ -1863,7 +1863,7 @@ log.debug/info/warning/error/critical(<str>) '<parent>.<name>'.
  • If logger doesn't have a set level it inherits it from the first ancestor that does.
  • Formatter also accepts: pathname, filename, funcName, lineno, thread and process.
  • -
  • A 'handlers.RotatingFileHandler' creates and deletes log files based on 'maxBytes' and 'backupCount' arguments.
  • +
  • A 'log.handlers.RotatingFileHandler' creates and deletes log files based on 'maxBytes' and 'backupCount' arguments.
  • Creates a logger that writes all messages to file and sends them to the root's handler that prints warnings or higher:

    >>> logger = log.getLogger('my_module')
     >>> handler = log.FileHandler('test.log', encoding='utf-8')
    @@ -2932,7 +2932,7 @@ $ deactivate                  # Deactivates the activ