diff --git a/README.md b/README.md index 5091bbe..730a775 100644 --- a/README.md +++ b/README.md @@ -1923,7 +1923,7 @@ with : # Exits the block with commit() ```python # $ pip3 install sqlalchemy from sqlalchemy import create_engine, text - = create_engine('').connect() # Url: 'dialect://user:password@host/dbname'. + = create_engine('') # Url: 'dialect://user:password@host/dbname'. = .connect() # Creates a connection. Also .close(). = .execute(text(''), …) # Replaces ':'s with keyword arguments. with .begin(): ... # Exits the block with commit or rollback. diff --git a/index.html b/index.html index 8700b8f..362d7e2 100644 --- a/index.html +++ b/index.html @@ -1600,7 +1600,7 @@ CompletedProcess(args=['bc', SqlAlchemy
# $ pip3 install sqlalchemy
 from sqlalchemy import create_engine, text
-<engine> = create_engine('<url>').connect()     # Url: 'dialect://user:password@host/dbname'.
+<engine> = create_engine('<url>')               # Url: 'dialect://user:password@host/dbname'.
 <conn>   = <engine>.connect()                   # Creates a connection. Also <conn>.close().
 <cursor> = <conn>.execute(text('<query>'), …)   # Replaces ':<key>'s with keyword arguments.
 with <conn>.begin(): ...                        # Exits the block with commit or rollback.