Skip to content

Commit 9d08977

Browse files
authored
Python 3 fixes. (#5051)
1 parent 5a847e3 commit 9d08977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/actionProxy/invoke.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def init(args):
101101
contents = fp.read()
102102
contents = str(base64.b64encode(contents), 'utf-8')
103103
binary = True
104-
elif artifact is not '':
104+
elif artifact != '':
105105
with(codecs.open(artifact, 'r', 'utf-8')) as fp:
106106
contents = fp.read()
107107
binary = False
@@ -122,7 +122,7 @@ def init(args):
122122

123123
print(r.text)
124124

125-
if r.status_code == 200 and args.run is not None:
125+
if r.status_code == 200 and args.run != None:
126126
runArgs = objectify({})
127127
runArgs.__dict__ = args.__dict__.copy()
128128
runArgs.payload = args.run

0 commit comments

Comments
 (0)