]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Spelling fixes
authorVille Skyttä <ville.skytta@iki.fi>
Fri, 7 Oct 2016 10:06:09 +0000 (13:06 +0300)
committerVille Skyttä <ville.skytta@iki.fi>
Sat, 8 Oct 2016 17:42:50 +0000 (20:42 +0300)
23 files changed:
doc/build/changelog/changelog_03.rst
doc/build/changelog/changelog_05.rst
doc/build/changelog/changelog_06.rst
doc/build/changelog/changelog_09.rst
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_06.rst
doc/build/changelog/migration_09.rst
doc/build/core/custom_types.rst
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/engine/result.py
lib/sqlalchemy/ext/indexable.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/pool.py
lib/sqlalchemy/sql/ddl.py
lib/sqlalchemy/sql/dml.py
test/engine/test_pool.py
test/orm/test_eager_relations.py
test/orm/test_lazy_relations.py
test/orm/test_subquery_relations.py
test/sql/test_generative.py
test/sql/test_inspect.py
test/sql/test_resultset.py

index 7c0a1af26bf8886898fa954082f85f493dad92a5..3648e2756b82253400dff758c50216763131f2f0 100644 (file)
         :tickets: 
 
       a wide refactoring to "attribute loader" and "options" architectures.
-      ColumnProperty and PropertyLoader define their loading behaivor via switchable
+      ColumnProperty and PropertyLoader define their loading behavior via switchable
       "strategies", and MapperOptions no longer use mapper/property copying
       in order to function; they are instead propagated via QueryContext
       and SelectionContext objects at query/instances time.
index f612ceed9a2005c32d19ca00d0118e2d8d7a6abd..5bcfd5fdfc706a06c79b634fdfc277cd49137d43 100644 (file)
         itself differently to some MapperExtensions.
       
         The change also affects the internal attribute API, but not
-        the AttributeExtension interface nor any of the publically
+        the AttributeExtension interface nor any of the publicly
         documented attribute functions.
       
       - The unit of work no longer genererates a graph of "dependency"
 
       Query.from_self() as well as query.subquery() both disable
       the rendering of eager joins inside the subquery produced.
-      The "disable all eager joins" feature is available publically
+      The "disable all eager joins" feature is available publicly
       via a new query.enable_eagerloads() generative.
 
     .. change::
index 168dac93c46df110ce7af8f15cc8a748c1980368..4a00201e75be952b7f3e4fb8064eae8d4bf2730c 100644 (file)
         :tickets: 
 
       The construction of types within dialects has been totally
-      overhauled.  Dialects now define publically available types
+      overhauled.  Dialects now define publicly available types
       as UPPERCASE names exclusively, and internal implementation
       types using underscore identifiers (i.e. are private).
       The system by which types are expressed in SQL and DDL
 
       PickleType now uses == for comparison of values when
       mutable=True, unless the "comparator" argument with a
-      comparsion function is specified to the type. Objects
+      comparison function is specified to the type. Objects
       being pickled will be compared based on identity (which
       defeats the purpose of mutable=True) if __eq__() is not
       overridden or a comparison function is not provided.
index 008427584a1096c504e7dd3f74edc745ab5a36c3..acb83627409b768eefd1ac093f864ce19abdd1c6 100644 (file)
 
         Fixed bug when the declarative ``__abstract__`` flag was not being
         distinguished for when it was actually the value ``False``.
-        The ``__abstract__`` flag needs to acutally evaluate to a True
+        The ``__abstract__`` flag needs to actually evaluate to a True
         value at the level being tested.
 
 .. changelog::
         fully usable within declarative relationship configuration, as its
         string classname would not be available in the registry of classnames
         at mapper configuration time.   The class now explicitly adds itself
-        to the class regsitry, and additionally both :class:`.AbstractConcreteBase`
+        to the class registry, and additionally both :class:`.AbstractConcreteBase`
         as well as :class:`.ConcreteBase` set themselves up *before* mappers
         are configured within the :func:`.configure_mappers` setup, using
         the new :meth:`.MapperEvents.before_configured` event.
index 8fd6b1dca2a618f2ff201d245a7596bde0cf9bc2..887c5c61d68b5c164b8aab1221bdc3fa0b8a35bf 100644 (file)
         provided by :class:`.Session` and :class:`.Connection`, and taking
         place for operations such as a failure on "RELEASE SAVEPOINT".
         Previously, the fix was only in place for a specific path within
-        the ORM flush/commit process; it now takes place for all transational
+        the ORM flush/commit process; it now takes place for all transactional
         context managers as well.
 
     .. change::
index 1eead6d3ccb86466f9634931a86eac41a8f6556b..e41446de5aa3c626477baee6ef2697a922f7a9cb 100644 (file)
@@ -659,7 +659,7 @@ scenes to provide two goals:
 Highlights of these changes include:
 
 * The construction of types within dialects has been totally
-  overhauled. Dialects now define publically available types
+  overhauled. Dialects now define publicly available types
   as UPPERCASE names exclusively, and internal
   implementation types using underscore identifiers (i.e.
   are private). The system by which types are expressed in
index 7d673c537cefb5bb44c991d951c8d653002ad0d6..0c0281a835a262179c4cb612f69111c7c1d40da7 100644 (file)
@@ -391,7 +391,7 @@ This is a small change demonstrated as follows::
     # in 0.8, this would fail to load the unloaded state.
     assert attributes.get_history(a1, 'data') == ((), ['a1',], ())
 
-    # load_history() is now equiavlent to get_history() with
+    # load_history() is now equivalent to get_history() with
     # passive=PASSIVE_OFF ^ INIT_OK
     assert inspect(a1).attrs.data.load_history() == ((), ['a1',], ())
 
@@ -1502,7 +1502,7 @@ insensitive names).
 
 The :class:`.quoted_name` object is used internally as needed; however if
 other keywords require fixed quoting preferences, the class is available
-publically.
+publicly.
 
 :ticket:`2812`
 
index 2c3784b97c8f805547e47227f409093f0fe0e45e..dd93b5bb35e557ece0586052c830965b328095bd 100644 (file)
@@ -401,7 +401,7 @@ Output::
 
 For an example of subclassing a built in type directly, we subclass
 :class:`.postgresql.BYTEA` to provide a ``PGPString``, which will make use of the
-Postgresql ``pgcrypto`` extension to encrpyt/decrypt values
+Postgresql ``pgcrypto`` extension to encrypt/decrypt values
 transparently::
 
     from sqlalchemy import create_engine, String, select, func, \
index 83facbf1f032edc9095e5cc5d63023d9c765fc40..f107578b2281de1d35021ee1bb37be2b4fea65c2 100644 (file)
@@ -222,7 +222,7 @@ class Connection(Connectable):
         :param isolation_level: Available on: :class:`.Connection`.
           Set the transaction isolation level for
           the lifespan of this :class:`.Connection` object (*not* the
-          underyling DBAPI connection, for which the level is reset
+          underlying DBAPI connection, for which the level is reset
           to its original setting upon termination of this
           :class:`.Connection` object).
 
@@ -499,7 +499,7 @@ class Connection(Connectable):
         :meth:`.Connection.execute` method or similar),
         this :class:`.Connection` will attempt to
         procure a new DBAPI connection using the services of the
-        :class:`.Pool` as a source of connectivty (e.g. a "reconnection").
+        :class:`.Pool` as a source of connectivity (e.g. a "reconnection").
 
         If a transaction was in progress (e.g. the
         :meth:`.Connection.begin` method has been called) when
index 082661216d90844d9e5ac9bce27c9c8cb9465f7a..2560937ab942e389592a6a636376ca35112bca2f 100644 (file)
@@ -634,7 +634,7 @@ class Dialect(object):
         raise NotImplementedError()
 
     def do_recover_twophase(self, connection):
-        """Recover list of uncommited prepared two phase transaction
+        """Recover list of uncommitted prepared two phase transaction
         identifiers on the given connection.
 
         :param connection: a :class:`.Connection`.
index 8e5d79968774cf7991225066e5320d5355f8e8d5..4b2c0475535a4d437232350277e3afc17e5a2f6d 100644 (file)
@@ -837,7 +837,7 @@ class ResultProxy(object):
 
         In the case of a result that is the product of
         :ref:`connectionless execution <dbengine_implicit>`,
-        the underyling :class:`.Connection` object is also closed, which
+        the underlying :class:`.Connection` object is also closed, which
         :term:`releases` DBAPI connection resources.
 
         After this method is called, it is no longer valid to call upon
@@ -1134,7 +1134,7 @@ class ResultProxy(object):
         discarded.
 
         Calls to :meth:`.ResultProxy.fetchmany` after all rows have been
-        exhuasted will return
+        exhausted will return
         an empty list.   After the :meth:`.ResultProxy.close` method is
         called, the method will raise :class:`.ResourceClosedError`.
 
index d0495fe5f404ddad6ac9759b6decb5b216b559d0..52a502ae4b08b6baa2d5265f0e59a1181af61601 100644 (file)
@@ -159,7 +159,7 @@ data structure does not exist, and a set operation is called:
   the default data structure will be a Python list of ``None`` values,
   at least as long as the index value; the value is then set at its
   place in the list.  This means for an index value of zero, the list
-  will be initalized to ``[None]`` before setting the given value,
+  will be initialized to ``[None]`` before setting the given value,
   and for an index value of five, the list will be initialized to
   ``[None, None, None, None, None]`` before setting the fifth element
   to the given value.   Note that an existing list is **not** extended
index cb712c94b3356589f8edb9a52cd24ee1277a60b5..e6416d173b56d4553e83c72827d8f28522150f45 100644 (file)
@@ -3078,7 +3078,7 @@ class Query(object):
               deletes are not supported by SQL** as well as that the
               **join condition of an inheritance mapper is not
               automatically rendered**.  Care must be taken in any
-              multiple-table delete to first accomodate via some other means
+              multiple-table delete to first accommodate via some other means
               how the related table will be deleted, as well as to
               explicitly include the joining
               condition between those tables, even in mappings where
index 09ffaca2afa421b35302b75f3844801ac4cb8a8f..79feff7d9a71146a5c4a197a0c4c8236caac9823 100644 (file)
@@ -134,7 +134,7 @@ class Pool(log.Identified):
           returned yet.  Offers a slight performance advantage at the
           cost of individual transactions by default.  The
           :meth:`.Pool.unique_connection` method is provided to return
-          a consistenty unique connection to bypass this behavior
+          a consistently unique connection to bypass this behavior
           when the flag is set.
 
           .. warning::  The :paramref:`.Pool.use_threadlocal` flag
index 48f27b8b8173b8fa718fe46c8fee7cd0799a1381..a48dec46f5b8ce713473d5474d1442f26298c962 100644 (file)
@@ -1007,7 +1007,7 @@ def sort_tables_and_constraints(
     ``(Table, [ForeignKeyConstraint, ...])`` such that each
     :class:`.Table` follows its dependent :class:`.Table` objects.
     Remaining :class:`.ForeignKeyConstraint` objects that are separate due to
-    dependency rules not satisifed by the sort are emitted afterwards
+    dependency rules not satisfied by the sort are emitted afterwards
     as ``(None, [ForeignKeyConstraint ...])``.
 
     Tables are dependent on another based on the presence of
index 31e4d3d9c8ea02daa75e32b75b2736cc888c0258..480b5ba7f5555f51c4422515ad75b1e3dac34901 100644 (file)
@@ -372,7 +372,7 @@ class ValuesBase(UpdateBase):
             if self._has_multi_parameters:
                 raise exc.ArgumentError(
                     "Can't pass kwargs and multiple parameter sets "
-                    "simultaenously")
+                    "simultaneously")
             else:
                 self.parameters.update(kwargs)
 
index 5b87c90b89daec6eaf29f8c1ebdf31561d74fff6..1fbaf59654cc9cc1c06aeb33ef6808014fb422ea 100644 (file)
@@ -262,7 +262,7 @@ class PoolTest(PoolTestBase):
 
     def test_rec_unconnected(self):
         # test production of a _ConnectionRecord with an
-        # initally unconnected state.
+        # initially unconnected state.
 
         dbapi = MockDBAPI()
         p1 = pool.Pool(
index 962cb338b5d2b08cb9748a2b77af65f398f892e3..759d4c5ba20c24f862812556a88248ce8d0c4cc6 100644 (file)
@@ -578,7 +578,7 @@ class EagerTest(_fixtures.FixtureTest, testing.AssertsCompiledSQL):
         self.assert_sql_count(testing.db, go, 1)
 
     def test_double_same_mappers(self):
-        """Eager loading with two relationships simulatneously,
+        """Eager loading with two relationships simultaneously,
         from the same table, using aliases."""
 
         addresses, items, order_items, orders, \
index 6ae7d9a5572b1abbc91407de080939689c3e2099..36ab5e765f029a6884ce2966a4bff36c1682296a 100644 (file)
@@ -332,7 +332,7 @@ class LazyTest(_fixtures.FixtureTest):
         )
 
     def test_double(self):
-        """tests lazy loading with two relationships simulatneously,
+        """tests lazy loading with two relationships simultaneously,
         from the same table, using aliases.  """
 
         users, orders, User, Address, Order, addresses = (
index 032f24a5e555f37b6d4f8d2cb9d90fc50b2c82e4..c8e8636fe511ef9327d63fe0e874cfe234e4b3cb 100644 (file)
@@ -559,7 +559,7 @@ class EagerTest(_fixtures.FixtureTest, testing.AssertsCompiledSQL):
         self.assert_sql_count(testing.db, go, 4)
 
     def test_double_same_mappers(self):
-        """Eager loading with two relationships simulatneously,
+        """Eager loading with two relationships simultaneously,
         from the same table, using aliases."""
 
         addresses, items, order_items, orders, Item, User, Address, Order, users = (self.tables.addresses,
index 81c589d11e60ad44c8b1b219b2d61bc01511226f..6335a3cf1d86e05b5e3423aedbab494c31e33db6 100644 (file)
@@ -1814,7 +1814,7 @@ class ValuesBaseTest(fixtures.TestBase, AssertsCompiledSQL):
         i = i.values((5, 6, 7))
         eq_(i.parameters, {"col1": 5, "col2": 6, "col3": 7})
 
-    def test_kw_and_dict_simulatenously_single(self):
+    def test_kw_and_dict_simultaneously_single(self):
         i = t1.insert()
         i = i.values({"col1": 5}, col2=7)
         eq_(i.parameters, {"col1": 5, "col2": 7})
@@ -1904,7 +1904,7 @@ class ValuesBaseTest(fixtures.TestBase, AssertsCompiledSQL):
         i = t1.insert()
         assert_raises_message(
             exc.ArgumentError,
-            "Can't pass kwargs and multiple parameter sets simultaenously",
+            "Can't pass kwargs and multiple parameter sets simultaneously",
             i.values, [{"col1": 5}], col2=7
         )
 
index 12d377e5187b0178ad614ffeabaf068ec5bfb954..60267542a7ea2f18fa9e877a86f5a7512a1a0bca 100644 (file)
@@ -36,7 +36,7 @@ class TestCoreInspection(fixtures.TestBase):
     def test_no_clause_element_on_clauseelement(self):
         # re [ticket:3802], there are in the wild examples
         # of looping over __clause_element__, therefore the
-        # absense of __clause_element__ as a test for "this is the clause
+        # absence of __clause_element__ as a test for "this is the clause
         # element" must be maintained
 
         x = Column('foo', Integer)
index f52412b6831af95173ddf51a51d8026a3795fb29..64d496a8f16eff8b26e241777df00ffb1fde44c6 100644 (file)
@@ -424,7 +424,7 @@ class ResultProxyTest(fixtures.TablesTest):
             dict(user_id=1, user_name='john'),
         )
 
-        # unary experssions
+        # unary expressions
         r = select([users.c.user_name.distinct()]).order_by(
             users.c.user_name).execute().first()
         eq_(r[users.c.user_name], 'john')