"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Zope2/Startup/datatypes.py" between
Zope-5.1.1.tar.gz and Zope-5.1.2.tar.gz

About: Zope Z Object Publishing Environment - web application platform used for building content management systems, intranets, portals, and custom applications.

datatypes.py  (Zope-5.1.1):datatypes.py  (Zope-5.1.2)
skipping to change at line 70 skipping to change at line 70
try: try:
package = getattr(package, component) package = getattr(package, component)
except AttributeError: except AttributeError:
n = '.'.join(modulenames) n = '.'.join(modulenames)
package = __import__(n, g, g, component) package = __import__(n, g, g, component)
return package return package
except ImportError: except ImportError:
IO = io.StringIO() IO = io.StringIO()
traceback.print_exc(file=IO) traceback.print_exc(file=IO)
raise ValueError( raise ValueError(
'The object named by "{}" could not be imported\n{}'.format( f'The object named by {name!r} could not be imported\n'
name, IO.getvalue())) f'{IO.getvalue()}')
class ZDaemonEnvironDict(UserDict): class ZDaemonEnvironDict(UserDict):
# zdaemon 2 expects to use a 'mapping' attribute of the environ object. # zdaemon 2 expects to use a 'mapping' attribute of the environ object.
@property @property
def mapping(self): def mapping(self):
return self.data return self.data
def root_wsgi_config(section): def root_wsgi_config(section):
from ZConfig import ConfigurationError from ZConfig import ConfigurationError
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)