mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
hmmm... moving def'n of version makes the __init__ unnecessary for the
example
This commit is contained in:
parent
8e97fbf360
commit
1c7ddb625e
1 changed files with 0 additions and 2 deletions
|
|
@ -161,8 +161,6 @@ import urllib
|
|||
|
||||
class AppURLopener(urllib.FancyURLopener):
|
||||
version = "App/1.7"
|
||||
def __init__(self, *args):
|
||||
urllib.FancyURLopener.__init__(self, *args)
|
||||
|
||||
urllib._urlopener = AppURLopener()
|
||||
\end{verbatim}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue