diff --git a/Lib/cgi.py b/Lib/cgi.py index dd5bee6a9d1..d4c55b73e11 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -19,7 +19,7 @@ # responsible for its maintenance. # -__version__ = "2.4" +__version__ = "2.5" # Imports @@ -497,7 +497,6 @@ def __init__(self, fp=None, headers=None, outerboundary="", self.list = self.file = None self.done = 0 - self.lines = [] if ctype == 'application/x-www-form-urlencoded': self.read_urlencoded() elif ctype[:10] == 'multipart/': @@ -633,7 +632,6 @@ def read_lines_to_eof(self): if not line: self.done = -1 break - self.lines.append(line) self.file.write(line) def read_lines_to_outerboundary(self): @@ -646,7 +644,6 @@ def read_lines_to_outerboundary(self): if not line: self.done = -1 break - self.lines.append(line) if line[:2] == "--": strippedline = string.strip(line) if strippedline == next: @@ -676,7 +673,6 @@ def skip_lines(self): if not line: self.done = -1 break - self.lines.append(line) if line[:2] == "--": strippedline = string.strip(line) if strippedline == next: