From 3847fa70e0913da9f33c821dff12e5aebe0702a4 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Mon, 13 Jul 2015 16:38:50 -0400 Subject: [PATCH] MAINT: Remove shadowing of built-in type function. Change variable name in convertible registration so that `type` is not over-written at module scope. --- zipline/assets/assets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py index 153e5f1d..3e53a198 100644 --- a/zipline/assets/assets.py +++ b/zipline/assets/assets.py @@ -630,8 +630,8 @@ class AssetConvertible(with_metaclass(ABCMeta)): AssetConvertible.register(Integral) AssetConvertible.register(Asset) # Use six.string_types for Python2/3 compatibility -for type in string_types: - AssetConvertible.register(type) +for _type in string_types: + AssetConvertible.register(_type) class NotAssetConvertible(ValueError):