compiler: gdsMill: Modernize codebase.

The few Python 2 statements are replaced with their modern
counterparts.  These are one of the following:
 - print() function calls (instead of statements),
 - Exception and Error raising,
 - passing/receiving tuples as function/lambda arguments,
 - the L suffix for numeral constants.

* compiler/gdsMill/pyx/box.py,
  compiler/gdsMill/pyx/connector.py,
  compiler/gdsMill/pyx/deformer.py,
  compiler/gdsMill/pyx/dvifile.py,
  compiler/gdsMill/pyx/epsfile.py,
  compiler/gdsMill/pyx/font/afm.py,
  compiler/gdsMill/pyx/font/t1font.py,
  compiler/gdsMill/pyx/graph/axis/texter.py,
  compiler/gdsMill/pyx/graph/axis/tick.py,
  compiler/gdsMill/sram_examples/cell6tDemo.py,
  compiler/gdsMill/sram_examples/newcell.py: Modernize syntax.
This commit is contained in:
Gabriel Wicki
2026-03-31 22:44:21 +02:00
parent 26e11044db
commit e01e6a567d
11 changed files with 39 additions and 37 deletions
+2 -2
View File
@@ -82,5 +82,5 @@ writer.writeToFile(gds_file_out)
# inputPath = "./gdsFiles/arrayLayout.gds")
print "LIB: %s" , gds_file_in
print "\nCompleted ", gds_file_out
print("LIB: %s" , gds_file_in)
print("\nCompleted ", gds_file_out)
+2 -2
View File
@@ -95,5 +95,5 @@ writer.writeToFile(gds_file_out)
# inputPath = "./gdsFiles/arrayLayout.gds")
print "LIB: %s" % gds_file_in
print "\nCompleted ", gds_file_out
print("LIB: %s" % gds_file_in)
print("\nCompleted ", gds_file_out)