From: Mike Bayer Date: Fri, 27 Apr 2007 17:36:56 +0000 (+0000) Subject: removed unneeded closure function X-Git-Tag: rel_0_3_7~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d457d11294938a09bf2303e0f543c38ac0d1aa6;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git removed unneeded closure function --- diff --git a/CHANGES b/CHANGES index c9c66e42ff..0cde130960 100644 --- 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 diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py index 0eb05840f9..cdf71e0444 100644 --- a/lib/sqlalchemy/orm/strategies.py +++ b/lib/sqlalchemy/orm/strategies.py @@ -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):