[Zope3-checkins] CVS: Zope3/src/pythonlib - csv.py:1.1.2.1 README.txt:1.2.14.1 __init__.py:1.2.14.1

Grégoire Weber zope@i-con.ch
Sun, 22 Jun 2003 10:24:26 -0400


Update of /cvs-repository/Zope3/src/pythonlib
In directory cvs.zope.org:/tmp/cvs-serv24874/src/pythonlib

Modified Files:
      Tag: cw-mail-branch
	README.txt __init__.py 
Added Files:
      Tag: cw-mail-branch
	csv.py 
Log Message:
Synced up with HEAD

=== Added File Zope3/src/pythonlib/csv.py ===
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################

# No docstring -- that's loaded from the actual module.

import pythonlib
pythonlib.load_compat('csv', globals())


=== Zope3/src/pythonlib/README.txt 1.2 => 1.2.14.1 ===
--- Zope3/src/pythonlib/README.txt:1.2	Fri Apr 11 15:44:35 2003
+++ Zope3/src/pythonlib/README.txt	Sun Jun 22 10:22:22 2003
@@ -13,11 +13,11 @@
 module that deviates from some version in Python.
 
 For example, say that Zope's current minimal Python requirement is
-Python 2.2.2, but say that you need the ``gettext`` module from
+Python 2.2.3, but say that you need the ``gettext`` module from
 Python 2.3.  You may take the ``gettext`` module from Python 2.3
 and drop it in the pythonlib/compat22 directory and arrange your
 imports so that Zope uses this version of ``gettext`` instead of
-the Python 2.2.2 standard module (see below for details).
+the Python 2.2.3 standard module (see below for details).
 
 The problem with making changes that aren't reflected in Python
 releases is that you will not be able to remove pythonlib modules


=== Zope3/src/pythonlib/__init__.py 1.2 => 1.2.14.1 ===
--- Zope3/src/pythonlib/__init__.py:1.2	Fri Apr 11 15:53:13 2003
+++ Zope3/src/pythonlib/__init__.py	Sun Jun 22 10:22:22 2003
@@ -31,6 +31,15 @@
         all = mod.__all__
     except AttributeError:
         all = [name for name in dir(mod) if not name.startswith('_')]
+    else:
+        # If the original had __all__, the exported version should as
+        # well, since there's no checking that it's the same as what
+        # would be auto-generated from the resulting module.
+        globals["__all__"] = mod.__all__
 
     for attr in all:
         globals[attr] = getattr(mod, attr)
+
+    # Add the module docstring if the shim module doesn't provide one.
+    if getattr(mod, "__doc__", None) and "__doc__" not in globals:
+        globals["__doc__"] = mod.__doc__