From b8551a0b935cb3d7ce8d7d4c0e2efdcb8959fe8c 2009-08-27 21:38:28 From: Brian Granger Date: 2009-08-27 21:38:28 Subject: [PATCH] Removed unused cutils.py module. --- diff --git a/IPython/config/cutils.py b/IPython/config/cutils.py deleted file mode 100644 index d72bcc9..0000000 --- a/IPython/config/cutils.py +++ /dev/null @@ -1,34 +0,0 @@ -# encoding: utf-8 - -"""Configuration-related utilities for all IPython.""" - -__docformat__ = "restructuredtext en" - -#------------------------------------------------------------------------------- -# Copyright (C) 2008 The IPython Development Team -# -# Distributed under the terms of the BSD License. The full license is in -# the file COPYING, distributed as part of this software. -#------------------------------------------------------------------------------- - -#------------------------------------------------------------------------------- -# Imports -#------------------------------------------------------------------------------- - -import os -import sys - -#--------------------------------------------------------------------------- -# Normal code begins -#--------------------------------------------------------------------------- - -def import_item(key): - """ - Import and return bar given the string foo.bar. - """ - package = '.'.join(key.split('.')[0:-1]) - obj = key.split('.')[-1] - execString = 'from %s import %s' % (package, obj) - exec execString - exec 'temp = %s' % obj - return temp