]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix indentation issues in docstrings
authorVraj Mohan <r.vrajmohan@gmail.com>
Tue, 12 Nov 2013 23:18:04 +0000 (18:18 -0500)
committerVraj Mohan <r.vrajmohan@gmail.com>
Wed, 13 Nov 2013 01:23:05 +0000 (20:23 -0500)
lib/sqlalchemy/orm/events.py
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/sql/ddl.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/type_api.py

index 3b67f767bbc4096e1a276eba26675ede6e449ff2..855841408ce9cabfbff418af3688552c1a945d88 100644 (file)
@@ -1295,9 +1295,9 @@ class SessionEvents(event.Events):
 
         :param session: The target :class:`.Session`.
         :param previous_transaction: The :class:`.SessionTransaction`
-        transactional marker object which was just closed.   The current
-        :class:`.SessionTransaction` for the given :class:`.Session` is
-        available via the :attr:`.Session.transaction` attribute.
+         transactional marker object which was just closed.   The current
+         :class:`.SessionTransaction` for the given :class:`.Session` is
+         available via the :attr:`.Session.transaction` attribute.
 
         .. versionadded:: 0.7.3
 
index f0b23111c9849196d9ce06ed50d080ce89e0f086..8296be60a23ea062524432b322c9ef8ef7c28c10 100644 (file)
@@ -732,7 +732,7 @@ class RelationshipProperty(StrategizedProperty):
         @util.memoized_property
         def mapper(self):
             """The target :class:`.Mapper` referred to by this
-            :class:`.RelationshipProperty.Comparator.
+            :class:`.RelationshipProperty.Comparator`.
 
             This is the "target" or "remote" side of the
             :func:`.relationship`.
@@ -1372,7 +1372,8 @@ class RelationshipProperty(StrategizedProperty):
     def table(self):
         """Return the selectable linked to this
         :class:`.RelationshipProperty` object's target
-        :class:`.Mapper`."""
+        :class:`.Mapper`.
+        """
         return self.target
 
     def do_init(self):
index 72ef0773240a35a2fc152919e418e628d49cce9d..f239cdf0f1374d0466d9c93f6b9321d50a319f29 100644 (file)
@@ -195,7 +195,7 @@ class DDLElement(Executable, _DDLCompiles):
           If the callable returns a true value, the DDL statement will be
           executed.
 
-        :param state: any value which will be passed to the callable_
+        :param state: any value which will be passed to the callable\_
           as the ``state`` keyword argument.
 
         .. seealso::
index b651aef5028496f6562ceced6f0e5c7a51d24ce8..7bf543a612845645987b861d66cd342a5cb58c6f 100644 (file)
@@ -364,7 +364,8 @@ class Table(SchemaItem, TableClause):
     @util.deprecated('0.9', 'Use ``table.schema.quote``')
     def quote_schema(self):
         """Return the value of the ``quote_schema`` flag passed
-        to this :class:`.Table`."""
+        to this :class:`.Table`.
+        """
 
         return self.schema.quote
 
index f83cdf69216a423f28e9309b452221df5fc86810..4fcf06290bd486727e20cc565f31c19c0219ba74 100644 (file)
@@ -246,11 +246,11 @@ class FromClause(Selectable):
         :param column: the target :class:`.ColumnElement` to be matched
 
         :param require_embedded: only return corresponding columns for
-        the given :class:`.ColumnElement`, if the given :class:`.ColumnElement` 
-        is actually present within a sub-element
-        of this :class:`.FromClause`.  Normally the column will match if
-        it merely shares a common ancestor with one of the exported
-        columns of this :class:`.FromClause`.
+         the given :class:`.ColumnElement`, if the given :class:`.ColumnElement` 
+         is actually present within a sub-element
+         of this :class:`.FromClause`.  Normally the column will match if
+         it merely shares a common ancestor with one of the exported
+         columns of this :class:`.FromClause`.
 
         """
 
index 01d9181200d12a1f63ee6e603a150e9648e015d5..82ab3d5560d4749d4ae3d5f9713786dddc57b73f 100644 (file)
@@ -645,9 +645,9 @@ class DateTime(_DateAffinity, TypeEngine):
         """Construct a new :class:`.DateTime`.
 
         :param timezone: boolean.  If True, and supported by the
-        backend, will produce 'TIMESTAMP WITH TIMEZONE'. For backends
-        that don't support timezone aware timestamps, has no
-        effect.
+         backend, will produce 'TIMESTAMP WITH TIMEZONE'. For backends
+         that don't support timezone aware timestamps, has no
+         effect.
 
         """
         self.timezone = timezone
index 5d81e4a0cbbbdc14c877559acf37de16c44eb2cd..12babd2c2551b278938dce73a63b5fbe3cf50954 100644 (file)
@@ -594,7 +594,7 @@ class TypeDecorator(TypeEngine):
     coerce_to_is_types = (util.NoneType, )
     """Specify those Python types which should be coerced at the expression
     level to "IS <constant>" when compared using ``==`` (and same for
-        ``IS NOT`` in conjunction with ``!=``.
+    ``IS NOT`` in conjunction with ``!=``.
 
     For most SQLAlchemy types, this includes ``NoneType``, as well as ``bool``.