]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
long lines
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Feb 2010 16:59:40 +0000 (16:59 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Feb 2010 16:59:40 +0000 (16:59 +0000)
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/ext/declarative.py

index 3f4e0b9f34b6da81a5515499feb26c2e2b55afec..2ae083d71200764fa94d9d01531f4b3ac9409504 100644 (file)
@@ -816,7 +816,8 @@ class MSExecutionContext(default.DefaultExecutionContext):
                 self.cursor.execute("SELECT scope_identity() AS lastrowid")
             else:
                 self.cursor.execute("SELECT @@identity AS lastrowid")
-            row = self.cursor.fetchall()[0]   # fetchall() ensures the cursor is consumed without closing it
+            # fetchall() ensures the cursor is consumed without closing it
+            row = self.cursor.fetchall()[0]   
             self._lastrowid = int(row[0])
 
         if (self.isinsert or self.isupdate or self.isdelete) and self.compiled.returning:
index 43177e2e239f027f12c309f0fe8b3056c528edf9..6d39418583f6b9df02ce216380693cc1849c1c77 100644 (file)
@@ -424,7 +424,9 @@ def instrument_declarative(cls, registry, metadata):
     
     """
     if '_decl_class_registry' in cls.__dict__:
-        raise exceptions.InvalidRequestError("Class %r already has been instrumented declaratively" % cls)
+        raise exceptions.InvalidRequestError(
+                            "Class %r already has been "
+                            "instrumented declaratively" % cls)
     cls._decl_class_registry = registry
     cls.metadata = metadata
     _as_declarative(cls, cls.__name__, cls.__dict__)