Skip to content

Commit 642a3df

Browse files
d-w-moorealanking
authored andcommitted
[irods/irods#6294] allow genquery.py in centos-7 rpm
We might revert this on resolution of irods/irods#6294, as the syntax: func( **{ **a, **b } ) is a preferable and more direct expression of: func(**dict(list(a.items())+list(b.items()))) But currently this fix is necessary to test on Centos 7 due to Python2 syntax requirements in the byte-compiling that happens when RPM packages are created.
1 parent 388867c commit 642a3df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

genquery.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ def copy(self,**options):
157157
if incorrect:
158158
raise GenQuery_Options_Spec_Error('Incorrect option(s) to Query: '+', '.join(incorrect))
159159
# let `options' override but not duplicate `self.parameters' in the keyword argument list
160-
return Query(self.callback, **{**self.parameters, **options})
160+
keyword_items_list = list(self.parameters.items()) + list(options.items())
161+
return Query(self.callback, **dict(keyword_items_list))
162+
#return Query(self.callback, **{**self.parameters, **options})
161163

162164
def exec_if_not_yet_execed(self):
163165
"""Query execution is delayed until the first result or total row count is requested."""

0 commit comments

Comments
 (0)