From f6972e8d0c03d6bddff2ba9859a9de138b263f6f Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Tue, 14 Feb 2012 20:01:29 +0900 Subject: [PATCH] There is absolutely no reason to use relative imports when loading a Component. --- product/ERP5Type/Core/Component.py | 3 +++ product/ERP5Type/dynamic/component_class.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/product/ERP5Type/Core/Component.py b/product/ERP5Type/Core/Component.py index ec8df89e7b..79d409bcee 100644 --- a/product/ERP5Type/Core/Component.py +++ b/product/ERP5Type/Core/Component.py @@ -28,6 +28,9 @@ # ############################################################################## +# There is absolutely no reason to use relative imports when loading a Component +from __future__ import absolute_import + from AccessControl import ClassSecurityInfo from Products.ERP5Type import Permissions from Products.ERP5Type.Base import Base diff --git a/product/ERP5Type/dynamic/component_class.py b/product/ERP5Type/dynamic/component_class.py index bdc3d090a9..14e2851f4f 100644 --- a/product/ERP5Type/dynamic/component_class.py +++ b/product/ERP5Type/dynamic/component_class.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2012 Nexedi SARL and Contributors. All Rights Reserved. @@ -26,6 +27,9 @@ # ############################################################################## +# There is absolutely no reason to use relative imports when loading a Component +from __future__ import absolute_import + import sys import threading -- 2.30.9