Skip to content

Commit 6978450

Browse files
committed
make code easy to use.
1 parent ee34ffd commit 6978450

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

functions/net/tcp/ssh/ssh-execute-commands-on-remote-host.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ def execute_commands_on_remote_host(host, command, **kwargs):
6565
understand your server's configuration before using!
6666
"""
6767
for line in stdout:
68-
print "Stdout: ", line,
68+
print("Stdout: ", line,)
6969

7070
for line in stdout:
71-
print "Stderr: ", line,
71+
print("Stderr: ", line,)
7272
client.close()
7373

7474

projects/WeChatOps/pySendMessageByWeChatWithoutSQL/sendMessageByWeChatApi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def send(self, debug=False):
174174
}
175175

176176
response = requests.request("POST", url, data=payload, headers=headers, params=querystring)
177-
print response.text
177+
print(response.text)
178178

179179

180180
if __name__ == '__main__':

0 commit comments

Comments
 (0)