annotate roundup/anypy/urllib_.py @ 7971:fe0348bbe45b

issue2551353 - Add roundup-classhelper for 2.4.0 release Changes to the classic template are not done yet. Still testing. This commit has document updates and changes to rest.py. rest.py: add /rest/data/user/role endpoint to core so the user doesn't have to add the /rest/roles endpoint via interfaces.py. It will only send roles for a user with Admin role and there is no way to override this currently. acknowledgements.txt: Added members of team3 to other contributors. Specified for all other contributes what they worked on. upgrading.txt: added classhelper section and basic template change directions. Linked to admin_guide for full directions. admin_guide.txt: documented install, translation, troubleshooting, config etc. user_guide.txt: added section on using the classhelper. Added reference to section earlier in the doc. Added image for section.
author John Rouillard <rouilj@ieee.org>
date Tue, 21 May 2024 01:17:28 -0400
parents d5d7ecd31864
children 5c5723cd721a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4362
74476eaac38a more modernisation
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
1
74476eaac38a more modernisation
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
2 try:
4996
dfd0bcc947e5 Add comments about supported anypy python versions
John Kristensen <john@jerrykan.com>
parents: 4362
diff changeset
3 # Python 3+
7767
d5d7ecd31864 chore: sort imports w/ ruff.
John Rouillard <rouilj@ieee.org>
parents: 7228
diff changeset
4 from urllib.parse import parse_qs, quote, unquote, urlencode, \
d5d7ecd31864 chore: sort imports w/ ruff.
John Rouillard <rouilj@ieee.org>
parents: 7228
diff changeset
5 urlparse, urlunparse
5402
88dbacd11cd1 Python 3 preparation: update urllib / urllib2 / urlparse imports.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5121
diff changeset
6 from urllib.request import urlopen
6023
7b194e35d332 flak8 fixes: replace bare except with except ImportError
John Rouillard <rouilj@ieee.org>
parents: 5402
diff changeset
7 except ImportError:
4996
dfd0bcc947e5 Add comments about supported anypy python versions
John Kristensen <john@jerrykan.com>
parents: 4362
diff changeset
8 # Python 2.5-2.7
7767
d5d7ecd31864 chore: sort imports w/ ruff.
John Rouillard <rouilj@ieee.org>
parents: 7228
diff changeset
9 from urllib import quote, unquote, urlencode # noqa: F401
d5d7ecd31864 chore: sort imports w/ ruff.
John Rouillard <rouilj@ieee.org>
parents: 7228
diff changeset
10
d5d7ecd31864 chore: sort imports w/ ruff.
John Rouillard <rouilj@ieee.org>
parents: 7228
diff changeset
11 from urllib2 import urlopen # noqa: F401
d5d7ecd31864 chore: sort imports w/ ruff.
John Rouillard <rouilj@ieee.org>
parents: 7228
diff changeset
12 from urlparse import parse_qs, urlparse, urlunparse # noqa: F401

Roundup Issue Tracker: http://roundup-tracker.org/