Remove Python 2 mentions

Also fix up indents
This commit is contained in:
Martin Rys
2025-11-28 20:26:44 +01:00
committed by Martin
parent 45517b8a66
commit 8e2620a597
2 changed files with 35 additions and 43 deletions

View File

@ -4,12 +4,9 @@
#
# SPDX-License-Identifier: BSD-3-Clause
# See COPYING file for more information.
from __future__ import absolute_import, division, print_function
import math
import sys
import os
import random
import struct
import getopt
import numpy as np
@ -125,7 +122,7 @@ def dofft(x, isreal):
p.wait()
return np.reshape(res, dims)
def main():
def main() -> None:
opts, args = getopt.getopt(sys.argv[1:], 'r')
opts = dict(opts)
global do_real