Skip to content

Commit 25ee5a0

Browse files
zzzeekGerrit Code Review
authored andcommitted
Merge "Fix many spell glitches in docstrings and comments"
2 parents 4f82d5f + f04147d commit 25ee5a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+78
-78
lines changed

lib/sqlalchemy/connectors/mxodbc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def create_connect_args(self, url):
108108
connect(dsn, user='', password='',
109109
clear_auto_commit=1, errorhandler=None)
110110
111-
This method translates the values in the provided uri
111+
This method translates the values in the provided URI
112112
into args and kwargs needed to instantiate an mxODBC Connection.
113113
114114
The arg 'errorhandler' is not used by SQLAlchemy and will

lib/sqlalchemy/dialects/mssql/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class JSON(sqltypes.JSON):
2222
2323
.. seealso::
2424
25-
:class:`_types.JSON` - main documenation for the generic
25+
:class:`_types.JSON` - main documentation for the generic
2626
cross-platform JSON datatype.
2727
2828
The :class:`_mssql.JSON` type supports persistence of JSON values

lib/sqlalchemy/dialects/mysql/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
mysql_key_block_size="1024"
126126
)
127127
128-
When supporing :ref:`mysql_mariadb_only_mode` mode, similar keys against
128+
When supporting :ref:`mysql_mariadb_only_mode` mode, similar keys against
129129
the "mariadb" prefix must be included as well. The values can of course
130130
vary independently so that different settings on MySQL vs. MariaDB may
131131
be maintained::
@@ -272,7 +272,7 @@
272272
-------------------
273273
274274
Server-side cursor support is available for the mysqlclient, PyMySQL,
275-
maridbconnector dialects and may also be available in others. This makes use
275+
mariadbconnector dialects and may also be available in others. This makes use
276276
of either the "buffered=True/False" flag if available or by using a class such
277277
as ``MySQLdb.cursors.SSCursor`` or ``pymysql.cursors.SSCursor`` internally.
278278

lib/sqlalchemy/dialects/mysql/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class JSON(sqltypes.JSON):
2121
2222
.. seealso::
2323
24-
:class:`_types.JSON` - main documenation for the generic
24+
:class:`_types.JSON` - main documentation for the generic
2525
cross-platform JSON datatype.
2626
2727
The :class:`.mysql.JSON` type supports persistence of JSON values

lib/sqlalchemy/dialects/mysql/provision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def generate_driver_url(url, driver, query_str):
1212

1313
# NOTE: at the moment, tests are running mariadbconnector
1414
# against both mariadb and mysql backends. if we want this to be
15-
# limited, do the decisionmaking here to reject a "mysql+mariadbconnector"
15+
# limited, do the decision making here to reject a "mysql+mariadbconnector"
1616
# URL. Optionally also re-enable the module level
1717
# MySQLDialect_mariadbconnector.is_mysql flag as well, which must include
1818
# a unit and/or functional test.

lib/sqlalchemy/dialects/mysql/reflection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def _prep_regexes(self):
451451
# CONSTRAINT `CONSTRAINT_1` CHECK (`x` > 5)'
452452
# testing on MariaDB 10.2 shows that the CHECK constraint
453453
# is returned on a line by itself, so to match without worrying
454-
# about parenthesis in the expresion we go to the end of the line
454+
# about parenthesis in the expression we go to the end of the line
455455
self._re_ck_constraint = _re_compile(
456456
r" "
457457
r"CONSTRAINT +"

lib/sqlalchemy/dialects/oracle/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ def get_columns(self, connection, table_name, schema=None, **kw):
20102010

20112011
def _parse_identity_options(self, identity_options, default_on_nul):
20122012
# identity_options is a string that starts with 'ALWAYS,' or
2013-
# 'BY DEFAULT,' and contues with
2013+
# 'BY DEFAULT,' and continues with
20142014
# START WITH: 1, INCREMENT BY: 1, MAX_VALUE: 123, MIN_VALUE: 1,
20152015
# CYCLE_FLAG: N, CACHE_SIZE: 1, ORDER_FLAG: N, SCALE_FLAG: N,
20162016
# EXTEND_FLAG: N, SESSION_FLAG: N, KEEP_VALUE: N

lib/sqlalchemy/dialects/oracle/cx_oracle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
:paramref:`_sa.create_engine.connect_args` parameter also accepts all
5454
cx_Oracle DBAPI connect arguments.
5555
56-
To pass arguments directly to ``.connect()`` wihtout using the query
56+
To pass arguments directly to ``.connect()`` without using the query
5757
string, use the :paramref:`_sa.create_engine.connect_args` dictionary.
5858
Any cx_Oracle parameter value and/or constant may be passed, such as::
5959
@@ -334,7 +334,7 @@ def _remove_clob(inputsizes, cursor, statement, parameters, context):
334334
engine = create_engine("oracle+cx_oracle://dsn", coerce_to_decimal=False)
335335
336336
The ``coerce_to_decimal`` flag only impacts the results of plain string
337-
SQL staements that are not otherwise associated with a :class:`.Numeric`
337+
SQL statements that are not otherwise associated with a :class:`.Numeric`
338338
SQLAlchemy type (or a subclass of such).
339339
340340
.. versionchanged:: 1.2 The numeric handling system for cx_Oracle has been

lib/sqlalchemy/dialects/postgresql/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def use_identity(element, compiler, **kw):
234234
object is referenced in a SQL statement. As detailed in the next section
235235
:ref:`postgresql_schema_reflection`, SQLAlchemy is generally organized around
236236
the concept of keeping this variable at its default value of ``public``,
237-
however, in order to have it set to any arbirary name or names when connections
237+
however, in order to have it set to any arbitrary name or names when connections
238238
are used automatically, the "SET SESSION search_path" command may be invoked
239239
for all connections in a pool using the following event handler, as discussed
240240
at :ref:`schema_set_default_connections`::
@@ -255,7 +255,7 @@ def set_search_path(dbapi_connection, connection_record):
255255
256256
The reason the recipe is complicated by use of the ``.autocommit`` DBAPI
257257
attribute is so that when the ``SET SESSION search_path`` directive is invoked,
258-
it is invoked outside of the scope of any tranasction and therefore will not
258+
it is invoked outside of the scope of any transaction and therefore will not
259259
be reverted when the DBAPI connection has a rollback.
260260
261261
.. seealso::
@@ -1189,7 +1189,7 @@ def process(value):
11891189
^^^^^^^^^^^^^^^^^^^^^^^^^^^
11901190
11911191
Similar to using ENUM, prior to SQLAlchemy 1.3.17, for an ARRAY of JSON/JSONB
1192-
we need to render the appropriate CAST. Current psycopg2 drivers accomodate
1192+
we need to render the appropriate CAST. Current psycopg2 drivers accommodate
11931193
the result set correctly without any special steps.
11941194
11951195
.. versionchanged:: 1.3.17 The combination of JSON/JSONB and ARRAY is now
@@ -2262,7 +2262,7 @@ def delete_extra_from_clause(
22622262
def fetch_clause(self, select, **kw):
22632263
# pg requires parens for non literal clauses. It's also required for
22642264
# bind parameters if a ::type casts is used by the driver (asyncpg),
2265-
# so it's easies to just always add it
2265+
# so it's easiest to just always add it
22662266
text = ""
22672267
if select._offset_clause is not None:
22682268
text += "\n OFFSET (%s) ROWS" % self.process(

lib/sqlalchemy/dialects/postgresql/ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _from_objects(self):
8787
class ExcludeConstraint(ColumnCollectionConstraint):
8888
"""A table-level EXCLUDE constraint.
8989
90-
Defines an EXCLUDE constraint as described in the `postgres
90+
Defines an EXCLUDE constraint as described in the `PostgreSQL
9191
documentation`__.
9292
9393
__ http://www.postgresql.org/docs/9.0/static/sql-createtable.html#SQL-CREATETABLE-EXCLUDE

0 commit comments

Comments
 (0)