Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rfc6266
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
rfc6266
Commits
39e73e8b
Commit
39e73e8b
authored
Apr 08, 2012
by
Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A note about percent_encode conformance.
parent
9fd634fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
rfc6266.py
+7
-2
No files found.
rfc6266.py
View file @
39e73e8b
...
@@ -38,8 +38,13 @@ LangTagged = namedtuple('LangTagged', 'string langtag')
...
@@ -38,8 +38,13 @@ LangTagged = namedtuple('LangTagged', 'string langtag')
if
PY3K
:
if
PY3K
:
percent_encode
=
quote
# XXX Both implementations allow stray %
percent_decode
=
unquote
def
percent_encode
(
string
,
safe
,
encoding
):
return
quote
(
string
,
safe
,
encoding
,
errors
=
'strict'
)
def
percent_decode
(
string
,
encoding
):
# unquote doesn't default to strict, fix that
return
unquote
(
string
,
encoding
,
errors
=
'strict'
)
else
:
else
:
def
percent_encode
(
string
,
**
kwargs
):
def
percent_encode
(
string
,
**
kwargs
):
encoding
=
kwargs
.
pop
(
'encoding'
)
encoding
=
kwargs
.
pop
(
'encoding'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment