Search found 1 match

by vateee
25 Oct 2020, 09:19
Forum: Extension scripts
Topic: History auto-purge
Replies: 24
Views: 18857

Re: History auto-purge

To fix the script so it works with python3 you need to change the imports to this:

Code: Select all

import os
import sys

  from xmlrpclib import ServerProxy # python 2
  from urllib2 import quote
except ImportError:
  from xmlrpc.client import ServerProxy # python 3
  from urllib.parse import quote