File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1212# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313# See the License for the specific language governing permissions and
1414# limitations under the License.
15- import sys
16- import imp
15+
1716import os
18- import __builtin__
17+ import imp
18+ import sys
19+
20+ PY2 = sys .version_info [0 ] == 2
21+
22+ if PY2 :
23+ import __builtin__ as builtins
24+ else :
25+ import builtins
1926
2027
2128class _OurImporter (object ):
@@ -86,7 +93,7 @@ def _check_import(dir_name):
8693def register_callback ():
8794 sys .path_hooks .append (_check_import )
8895
89- save_import = __builtin__ .__import__
96+ save_import = builtins .__import__
9097
9198 def new_import (* argv , ** kwargs ):
9299 try :
@@ -104,4 +111,4 @@ def new_import(*argv, **kwargs):
104111
105112 return module
106113
107- __builtin__ .__import__ = new_import
114+ builtins .__import__ = new_import
Original file line number Diff line number Diff line change 1818
1919setup (
2020 name = 'cloudify-python-importer' ,
21- version = '0.1 ' ,
21+ version = '0.2 ' ,
2222 author = 'Cloudify Team' ,
23232424 description = 'Plugin provides Kubernetes management possibility' ,
You can’t perform that action at this time.
0 commit comments