summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib
diff options
context:
space:
mode:
authorbwarsaw1999-11-10 19:51:11 +0000
committerbwarsaw1999-11-10 19:51:11 +0000
commit82a27c6de81f5c879a2099d84724f5643c6e5159 (patch)
tree4dcaf96f7954a8746bf4c8d949ffc00aaa353164 /Mailman/pythonlib
parent87183b7669bc2f2fbb502b446a6fbf09c0c53ec7 (diff)
downloadmailman-82a27c6de81f5c879a2099d84724f5643c6e5159.tar.gz
mailman-82a27c6de81f5c879a2099d84724f5643c6e5159.tar.zst
mailman-82a27c6de81f5c879a2099d84724f5643c6e5159.zip
Diffstat (limited to 'Mailman/pythonlib')
-rw-r--r--Mailman/pythonlib/StringIO.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/Mailman/pythonlib/StringIO.py b/Mailman/pythonlib/StringIO.py
new file mode 100644
index 000000000..009995006
--- /dev/null
+++ b/Mailman/pythonlib/StringIO.py
@@ -0,0 +1,22 @@
+# Copyright (C) 1998 by the Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+"""Convenience wrapper which tries to load cStringIO, followed by StringIO."""
+
+try:
+ from cStringIO import *
+except ImportError:
+ from StringIO import *