Update of /cvsroot/pywin32/pywin32/AutoDuck
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2945
Modified Files:
Tag: py3k
BuildHHP.py Dump2HHC.py InsertExternalOverviews.py
document_object.py makedfromi.py
Log Message:
move to py3k syntax
Index: BuildHHP.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/AutoDuck/BuildHHP.py,v
retrieving revision 1.9.4.1
retrieving revision 1.9.4.2
diff -C2 -d -r1.9.4.1 -r1.9.4.2
*** BuildHHP.py 26 Nov 2008 09:03:28 -0000 1.9.4.1
--- BuildHHP.py 28 Jan 2009 11:12:57 -0000 1.9.4.2
***************
*** 40,44 ****
new = glob.glob(g)
if len(new)==0:
! print("The pattern '%s' yielded no files!" % (g,))
lFiles = lFiles + new
# lFiles is now the list of origin files.
--- 40,44 ----
new = glob.glob(g)
if len(new)==0:
! print "The pattern '%s' yielded no files!" % (g,)
lFiles = lFiles + new
# lFiles is now the list of origin files.
***************
*** 66,70 ****
# else we have a trailing slash - it means we _expect_ it to be a patch as-is.
assert os.path.isdir(sCommonPrefix) and sCommonPrefix[-1]=="\\", "commonprefix splitting aint gunna work!"
! print("sCommonPrefix=", sCommonPrefix)
# Ok, now remove this common prefix from every file:
lRelativeFiles = []
--- 66,70 ----
# else we have a trailing slash - it means we _expect_ it to be a patch as-is.
assert os.path.isdir(sCommonPrefix) and sCommonPrefix[-1]=="\\", "commonprefix splitting aint gunna work!"
! print "sCommonPrefix=", sCommonPrefix
# Ok, now remove this common prefix from every file:
lRelativeFiles = []
Index: Dump2HHC.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/AutoDuck/Dump2HHC.py,v
retrieving revision 1.6.4.1
retrieving revision 1.6.4.2
diff -C2 -d -r1.6.4.1 -r1.6.4.2
*** Dump2HHC.py 26 Nov 2008 09:03:28 -0000 1.6.4.1
--- Dump2HHC.py 28 Jan 2009 11:12:57 -0000 1.6.4.2
***************
*** 143,147 ****
if d.has_key(top.name):
! print("Duplicate named %s detected: %s" % (top.type, top.name))
# Skip the property fields line for module/object
--- 143,147 ----
if d.has_key(top.name):
! print "Duplicate named %s detected: %s" % (top.type, top.name)
# Skip the property fields line for module/object
Index: InsertExternalOverviews.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/AutoDuck/InsertExternalOverviews.py,v
retrieving revision 1.2.4.1
retrieving revision 1.2.4.2
diff -C2 -d -r1.2.4.1 -r1.2.4.2
*** InsertExternalOverviews.py 26 Nov 2008 09:03:28 -0000 1.2.4.1
--- InsertExternalOverviews.py 28 Jan 2009 11:12:57 -0000 1.2.4.2
***************
*** 45,49 ****
def main():
if len(sys.argv) != 2:
! print("Invalid args")
sys.exit(1)
file = sys.argv[1]
--- 45,49 ----
def main():
if len(sys.argv) != 2:
! print "Invalid args"
sys.exit(1)
file = sys.argv[1]
Index: document_object.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/AutoDuck/document_object.py,v
retrieving revision 1.2.4.1
retrieving revision 1.2.4.2
diff -C2 -d -r1.2.4.1 -r1.2.4.2
*** document_object.py 26 Nov 2008 09:03:28 -0000 1.2.4.1
--- document_object.py 28 Jan 2009 11:12:57 -0000 1.2.4.2
***************
*** 68,80 ****
if __name__=='__main__':
doc = GetDocument()
! print("Important Notes")
for link in doc.important:
! print(" ", link.name, link.href)
! print("Doc links")
for link in doc.links:
! print(" ", link.name, link.href)
! print("Doc categories")
for c in doc:
! print(" ", c.id, c.label)
--- 68,80 ----
if __name__=='__main__':
doc = GetDocument()
! print "Important Notes"
for link in doc.important:
! print " ", link.name, link.href
! print "Doc links"
for link in doc.links:
! print " ", link.name, link.href
! print "Doc categories"
for c in doc:
! print " ", c.id, c.label
Index: makedfromi.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/AutoDuck/makedfromi.py,v
retrieving revision 1.8.4.1
retrieving revision 1.8.4.2
diff -C2 -d -r1.8.4.1 -r1.8.4.2
*** makedfromi.py 26 Nov 2008 09:03:28 -0000 1.8.4.1
--- makedfromi.py 28 Jan 2009 11:12:57 -0000 1.8.4.2
***************
*** 80,84 ****
extra_tags.append("// " + doc + '\n')
except:
! print("Line %d is badly formed - %s" % (lineNo, str(sys.exc_value)))
lineNo = lineNo + 1
--- 80,84 ----
extra_tags.append("// " + doc + '\n')
except:
! print "Line %d is badly formed - %s" % (lineNo, str(sys.exc_value))
lineNo = lineNo + 1
***************
*** 109,113 ****
fields = string.split(meth,'|')
if len(fields)<>3:
! print("**Error - %s does not have enough fields" % meth)
else:
outFile.write("// @pymethod %s|%s|%s|%s\n" % (fields[0],thisModName,fields[1], fields[2]))
--- 109,113 ----
fields = string.split(meth,'|')
if len(fields)<>3:
! print "**Error - %s does not have enough fields" % meth
else:
outFile.write("// @pymethod %s|%s|%s|%s\n" % (fields[0],thisModName,fields[1], fields[2]))
***************
*** 143,149 ****
outName = a
msg = string.join(args)
! except getopt.error as msg:
! print(msg)
! print("Usage: %s [-o output_name] [-p com_parent] filename" % sys.argv[0])
return
--- 143,149 ----
outName = a
msg = string.join(args)
! except getopt.error, msg:
! print msg
! print "Usage: %s [-o output_name] [-p com_parent] filename" % sys.argv[0]
return
|