This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: example for urllib2 has SyntaxError
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: quiver, rhettinger
Priority: low Keywords: patch

Created on 2004-02-08 11:42 by quiver, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
liburllib2.tex.diff quiver, 2004-02-08 11:42 fix sample code
ref2.tex.diff quiver, 2004-02-08 11:44 last name is misspelled
Messages (2)
msg45366 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2004-02-08 11:42
From the example for urllib2.
http://www.python.org/doc/current/lib/urllib2-
examples.html

> print '...' %
> data

The problem is that the right argument of % operator is 
not in the same line.
This should read:

> print '...' % data


There is another typo from Python Reference Manual.
http://www.python.org/doc/current/ref/encodings.html
> which is recognized by Bram Moolenar's VIM.

Moolenaar is misspelled. His last name is Moolenaar, not 
Moolenar. Check his web site.
http://www.moolenaar.net/vim.html
msg45367 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-02-08 20:30
Logged In: YES 
user_id=80475

Accepted and applied.

Thanks for your keen eye.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39914
2004-02-08 11:42:28quivercreate