From 0d457d11294938a09bf2303e0f543c38ac0d1aa6 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 27 Apr 2007 17:36:56 +0000 Subject: [PATCH] removed unneeded closure function --- CHANGES | 2 +- lib/sqlalchemy/orm/strategies.py | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) 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): -- 2.47.2