Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #136 from gchq/gh-20-travis-python
Browse files Browse the repository at this point in the history
Gh 20 travis python
  • Loading branch information
p013570 authored Jun 28, 2017
2 parents 404367c + 1c2c5d0 commit 46fb460
Show file tree
Hide file tree
Showing 2 changed files with 1,561 additions and 11 deletions.
8 changes: 4 additions & 4 deletions python-shell/src/gafferpy/gaffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ def to_json(self):

element_generator = {'class': self.generator_class_name}
if self.element_generator_fields is not None:
for field in self.element_generator_fields:
element_generator[field.key] = field.value
for key, value in self.element_generator_fields.items():
element_generator[key] = value
operation['elementGenerator'] = element_generator
return operation

Expand Down Expand Up @@ -518,8 +518,8 @@ def to_json(self):

element_generator = {'class': self.generator_class_name}
if self.element_generator_fields is not None:
for field in self.element_generator_fields:
element_generator[field.key] = field.value
for key, value in self.element_generator_fields.items():
element_generator[key] = value
operation['elementGenerator'] = element_generator
return operation

Expand Down
Loading

0 comments on commit 46fb460

Please sign in to comment.