mirror of https://github.com/python/cpython
hmmm... moving def'n of version makes the __init__ unnecessary for the
example
This commit is contained in:
parent
8e97fbf360
commit
1c7ddb625e
|
@ -161,8 +161,6 @@ import urllib
|
||||||
|
|
||||||
class AppURLopener(urllib.FancyURLopener):
|
class AppURLopener(urllib.FancyURLopener):
|
||||||
version = "App/1.7"
|
version = "App/1.7"
|
||||||
def __init__(self, *args):
|
|
||||||
urllib.FancyURLopener.__init__(self, *args)
|
|
||||||
|
|
||||||
urllib._urlopener = AppURLopener()
|
urllib._urlopener = AppURLopener()
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
Loading…
Reference in New Issue