Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
simplejson
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
simplejson
Commits
61a966cd3943
Commit
61a966cd3943
authored
10 years ago
by
Bob Ippolito
Browse files
Options
Downloads
Patches
Plain Diff
ensure cached encoder is only used when all settings are default
parent
fc047df63b20
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
simplejson/__init__.py
+9
-5
9 additions, 5 deletions
simplejson/__init__.py
with
9 additions
and
5 deletions
simplejson/__init__.py
+
9
−
5
View file @
61a966cd
...
...
@@ -243,8 +243,11 @@
cls
is
None
and
indent
is
None
and
separators
is
None
and
encoding
==
'
utf-8
'
and
default
is
None
and
use_decimal
and
namedtuple_as_object
and
tuple_as_array
and
not
bigint_as_string
and
int_as_string_bitcount
is
None
and
not
item_sort_key
and
not
for_json
and
not
ignore_nan
and
not
kw
):
and
not
bigint_as_string
and
not
sort_keys
and
not
item_sort_key
and
not
for_json
and
not
ignore_nan
and
int_as_string_bitcount
is
None
and
not
kw
):
iterable
=
_default_encoder
.
iterencode
(
obj
)
else
:
if
cls
is
None
:
...
...
@@ -359,9 +362,10 @@
cls
is
None
and
indent
is
None
and
separators
is
None
and
encoding
==
'
utf-8
'
and
default
is
None
and
use_decimal
and
namedtuple_as_object
and
tuple_as_array
and
not
bigint_as_string
and
int_as_string_bitcount
is
None
and
not
sort_keys
and
not
item_sort_key
and
not
for_json
and
not
ignore_nan
and
not
kw
and
not
bigint_as_string
and
not
sort_keys
and
not
item_sort_key
and
not
for_json
and
not
ignore_nan
and
int_as_string_bitcount
is
None
and
not
kw
):
return
_default_encoder
.
encode
(
obj
)
if
cls
is
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment