Skip to content

Commit

Permalink
NXPY-233: Make sure to not alter the original object
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Jul 6, 2021
1 parent 78af1c8 commit 7664493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxeo/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def query(self, opts=None, **kwargs):
:param opts: a query or a pageProvider
:return: the corresponding documents
"""
opts = opts or {}
opts = opts.copy() if opts else {}
if "query" in opts:
query = "NXQL"
elif "pageProvider" in opts:
Expand Down

0 comments on commit 7664493

Please sign in to comment.