compiler: gdsMill: Modernize codebase.

* compiler/gdsMill/pyx/graph/axis/tick.py: Modernize.
This commit is contained in:
Gabriel Wicki 2026-04-17 13:14:03 +02:00
parent 9274fbd4f2
commit 5cd43442b8
1 changed files with 2 additions and 2 deletions

View File

@ -90,12 +90,12 @@ class rational:
if autolong:
self.denom *= 10 ** int(expparts[1])
else:
self.denom *= 10L ** int(expparts[1])
self.denom *= 10 ** int(expparts[1])
else:
if autolong:
self.num *= 10 ** int(expparts[1])
else:
self.num *= 10L ** int(expparts[1])
self.num *= 10 ** int(expparts[1])
def initfromfloat(self, x, floatprecision):
"converts a float into a rational with finite resolution"