Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
79665453
Commit
79665453
authored
Jun 14, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not decode & encode when unquoting urls.
This causes errors and solves nothing.
parent
61b390ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
apachedex/__init__.py
apachedex/__init__.py
+1
-4
No files found.
apachedex/__init__.py
View file @
79665453
...
@@ -107,10 +107,7 @@ if lzma is not None:
...
@@ -107,10 +107,7 @@ if lzma is not None:
# to be urlencoded, so pure ascii. Are timestamps localised ?
# to be urlencoded, so pure ascii. Are timestamps localised ?
INPUT_ENCODING
=
'ascii'
INPUT_ENCODING
=
'ascii'
if
sys
.
version_info
<
(
3
,
):
unquoteToHtml
=
lambda
x
:
escape
(
unquote
(
x
))
unquoteToHtml
=
lambda
x
:
escape
(
unquote
(
x
.
encode
(
'ascii'
)).
decode
(
'utf-8'
))
else
:
unquoteToHtml
=
lambda
x
:
escape
(
unquote
(
x
))
MONTH_VALUE_DICT
=
dict
((
y
,
x
)
for
(
x
,
y
)
in
enumerate
((
'Jan'
,
'Feb'
,
'Mar'
,
MONTH_VALUE_DICT
=
dict
((
y
,
x
)
for
(
x
,
y
)
in
enumerate
((
'Jan'
,
'Feb'
,
'Mar'
,
'Apr'
,
'May'
,
'Jun'
,
'Jul'
,
'Aug'
,
'Sep'
,
'Oct'
,
'Nov'
,
'Dec'
),
1
))
'Apr'
,
'May'
,
'Jun'
,
'Jul'
,
'Aug'
,
'Sep'
,
'Oct'
,
'Nov'
,
'Dec'
),
1
))
...
...
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