mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
Tools: update_wiki.py: fix syntax error
SyntaxError: print() is a function in Python 3
This commit is contained in:
parent
f266c82040
commit
d583bb9cbc
@ -7,6 +7,7 @@ May 2013
|
|||||||
See http://codex.wordpress.org/XML-RPC_WordPress_API/Posts
|
See http://codex.wordpress.org/XML-RPC_WordPress_API/Posts
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
import xmlrpclib, sys
|
import xmlrpclib, sys
|
||||||
|
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
@ -87,5 +88,5 @@ r = server.wp.editPost(opts.blog_id, opts.username, opts.password, post_id, { 'p
|
|||||||
if r == True:
|
if r == True:
|
||||||
print("Upload OK")
|
print("Upload OK")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
print 'result: ', r
|
print('result: ', r)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user