Skip to content

Patch for making it work with Python 3.10 #39

Description

@mandarm

The following appears to work for me (based on a very quick check). Pasting in case it's useful to others.

--- pylookup.py~        2022-11-25 01:29:37.643863100 +0530
+++ pylookup.py 2022-11-26 18:11:38.158974986 +0530
@@ -20,7 +20,6 @@
     import cPickle as pickle
 except:
     import pickle
-import formatter

 from os.path import join, dirname, exists, abspath, expanduser
 from contextlib import closing
@@ -126,7 +125,7 @@
     """

     def __init__( self, writer, dirn):
-        htmllib.HTMLParser.__init__( self, formatter.NullFormatter() )
+        html.parser.HTMLParser.__init__( self, formatter.NullFormatter() )

         self.writer     = writer
         self.dirn       = dirn

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions