Run futurize --stage1

This commit is contained in:
JonnyWong16 2019-11-23 19:11:42 -08:00
parent 221be380ee
commit ab6196589b
36 changed files with 736 additions and 497 deletions

View file

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# This file is part of Tautulli.
#
# Tautulli is free software: you can redistribute it and/or modify
@ -18,12 +20,16 @@
#########################################
import urllib
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from common import USER_AGENT
import urllib.request, urllib.parse, urllib.error
from plexpy.common import USER_AGENT
class PlexPyURLopener(urllib.FancyURLopener):
class PlexPyURLopener(urllib.request.FancyURLopener):
version = USER_AGENT
@ -44,7 +50,7 @@ class AuthURLOpener(PlexPyURLopener):
self.numTries = 0
# call the base class
urllib.FancyURLopener.__init__(self)
urllib.request.FancyURLopener.__init__(self)
def prompt_user_passwd(self, host, realm):
"""