Commit 812809bd authored by Fred Drake's avatar Fred Drake

Fix imports so that XML import works with Python 2.1. The addition of

__all__ to the pickle module, and the import constraints that causes symbols
not listed in __all__ not to be imported by "import *", caused these modules
to break because some names were not acquired from the pickle module which
had been acquired before.

This patch adds the appropriate imports so that dependence on the pickle
module's implementation details is avoided.
parent f9e3c238
......@@ -99,6 +99,8 @@ import tempfile
import marshal
import xyap
mdumps = marshal.dumps
mloads = marshal.loads
xyap=xyap.xyap
......
......@@ -20,9 +20,12 @@ Oh well.
"""
import string
import xmllib
from pickle import *
from types import ListType
class xyap:
start_handlers={}
end_handlers={}
......@@ -63,7 +66,6 @@ class NoBlanks:
def handle_data(self, data):
if string.strip(data): self.append(data)
import xmllib
def struct(self, tag, data):
r={}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment