[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/component/__init__.py
"Pull a string" :) IOW, remove some 3.3 BBB
Philipp von Weitershausen
philikon at philikon.de
Wed Mar 1 01:07:34 EST 2006
Log message for revision 65661:
"Pull a string" :) IOW, remove some 3.3 BBB
Changed:
U Zope3/branches/jim-adapter/src/zope/component/__init__.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/component/__init__.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/component/__init__.py 2006-03-01 05:56:50 UTC (rev 65660)
+++ Zope3/branches/jim-adapter/src/zope/component/__init__.py 2006-03-01 06:07:33 UTC (rev 65661)
@@ -260,19 +260,7 @@
# Factories
def createObject(__factory_name, *args, **kwargs):
- # BBB: Goes away in 3.3
- if not isinstance(__factory_name, basestring):
- import warnings
- warnings.warn(
- "Passing a context as a first argument to createObject is "
- "deprecated. It will be unsupported in Zope X3.3. Use a "
- "context keyword argument instead.",
- DeprecationWarning, 2)
- context = __factory_name
- __factory_name, args = args[0], args[1:]
- else:
- context = kwargs.pop('context', None)
-
+ context = kwargs.pop('context', None)
return getUtility(IFactory, __factory_name, context)(*args, **kwargs)
def getFactoryInterfaces(name, context=None):
More information about the Zope3-Checkins
mailing list