]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
removed unneeded closure function
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 27 Apr 2007 17:36:56 +0000 (17:36 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 27 Apr 2007 17:36:56 +0000 (17:36 +0000)
CHANGES
lib/sqlalchemy/orm/strategies.py

diff --git a/CHANGES b/CHANGES
index c9c66e42ff988ebcd77ac2f03c32a5baea30a8b6..0cde130960c14697f009e1805bd901e6da121b8d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -48,7 +48,7 @@
       that gets truncated to 30 chars will go out to 63 characters
       on postgres.  Also, the true labelname is always attached as the
       accessor on the parent Selectable so theres no need to be aware
-      of the genrerated label names [ticket:512].
+      of the "truncated" label names [ticket:512].
     - column label and bind param "truncation" also generate 
       deterministic names now, based on their ordering within the 
       full statement being compiled.  this means the same statement
index 0eb05840f9c26945c03fc2f4d4640ae9426a2755..cdf71e0444a601720f67737b8c563e032107004a 100644 (file)
@@ -268,14 +268,8 @@ class LazyLoader(AbstractRelationLoader):
             FindColumnInColumnClause().traverse(expr)
             return len(columns) and columns[0] or None
         
-        def col_in_collection(column, collection):
-            for c in collection:
-                if column.shares_lineage(c):
-                    return True
-            else:
-                return False
-                
         def bind_label():
+            # TODO: make this generation deterministic
             return "lazy_" + hex(random.randint(0, 65535))[2:]
 
         def visit_binary(binary):