pombreda / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

sgmllib3 import error #258

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. just import sgmllib3

What is the expected output? What do you see instead?
import must be correct

What version of the product are you using? On what operating system?
feedparser 5.0.1 python 2.6

Please provide any additional information below.
It should be something like this (line 479):
    def unknown_starttag(self, tag, attrs):
        self.flush()
        if not attrs:
            print('start tag: <' + tag + '>')
        else:
            print('start tag: <' + tag)
            for name, value in attrs:
                print(name + '=' + '"' + value + '"')
            print('>')

Original issue reported on code.google.com by anton.ch...@gmail.com on 4 Mar 2011 at 9:34

GoogleCodeExporter commented 9 years ago
Don't import sgmllib3 in Python 2.6! It's identical to sgmllib in Python 2.x 
but has been ported to Python 3 because sgmllib was removed in Python 3.x. It 
will not be supported in any other configuration.

Original comment by kurtmckee on 4 Mar 2011 at 5:58