summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Heisterkamp <simon@heisterkamp.dk>2023-01-01 20:59:40 +0000
committerAndi Albrecht <albrecht.andi@gmail.com>2023-01-02 08:54:47 +0100
commit907fb496f90f2719095a1f01fe24db1e5c0e15a8 (patch)
treeb2b5c9500519fc53f5e388572f3d06727caf6377 /docs
parentfbf9a576fe40ad8e4d51bb922bb454c317f73403 (diff)
downloadsqlparse-907fb496f90f2719095a1f01fe24db1e5c0e15a8.tar.gz
change singleton behavior
Diffstat (limited to 'docs')
-rw-r--r--docs/source/extending.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/source/extending.rst b/docs/source/extending.rst
index 97b7d38..0c10924 100644
--- a/docs/source/extending.rst
+++ b/docs/source/extending.rst
@@ -45,7 +45,7 @@ a keyword to the lexer:
from sqlparse.lexer import Lexer
# get the lexer singleton object to configure it
- lex = Lexer()
+ lex = Lexer.get_default_instance()
# Clear the default configurations.
# After this call, reg-exps and keyword dictionaries need to be loaded