From 5cfbb7d9e49f23a67332f37983dad249718db3f4 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Wed, 8 Jun 2022 13:12:35 -0600 Subject: [PATCH] Remove semicolons in Python code examples (resolves #629). --- doc/src/user_guide/initialization.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/src/user_guide/initialization.rst b/doc/src/user_guide/initialization.rst index c2fa3ca..f2e3c08 100644 --- a/doc/src/user_guide/initialization.rst +++ b/doc/src/user_guide/initialization.rst @@ -168,8 +168,8 @@ example, if the Oracle Instant Client Libraries are in cx_Oracle.init_oracle_client(lib_dir=lib_dir) except Exception as err: print("Whoops!") - print(err); - sys.exit(1); + print(err) + sys.exit(1) Note the use of a 'raw' string ``r"..."`` on Windows so that backslashes are treated as directory separators. @@ -220,8 +220,8 @@ you can call :meth:`cx_Oracle.init_oracle_client()`: cx_Oracle.init_oracle_client(config_dir="/etc/my-oracle-config") except Exception as err: print("Whoops!") - print(err); - sys.exit(1); + print(err) + sys.exit(1) This is equivalent to setting the environment variable `TNS_ADMIN `__ @@ -393,8 +393,8 @@ parameters is: error_url="https://example.com/MyInstallInstructions.html") except Exception as err: print("Whoops!") - print(err); - sys.exit(1); + print(err) + sys.exit(1) The convention for ``driver_name`` is to separate the product name from the product version by a colon and single blank characters. The value will be shown