diff options
author | Damien George <damien@micropython.org> | 2022-02-02 16:11:25 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-02-02 16:49:55 +1100 |
commit | ab2923dfa1174dc177f0a90cb00a7e4ff87958d2 (patch) | |
tree | 48566c83ba1b6658382c429d39b9f2c8bcc42af2 /tests/float/complex1.py | |
parent | 326b2c79dfaf472d67e5e3fee5868e78ccc6be73 (diff) | |
download | micropython-ab2923dfa1174dc177f0a90cb00a7e4ff87958d2.tar.gz micropython-ab2923dfa1174dc177f0a90cb00a7e4ff87958d2.zip |
all: Update Python formatting to latest Black version 22.1.0.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/float/complex1.py')
-rw-r--r-- | tests/float/complex1.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py index a510ffc830..139bb0c509 100644 --- a/tests/float/complex1.py +++ b/tests/float/complex1.py @@ -27,15 +27,15 @@ print(1j * 2j) print(1j / 2) print((1j / 2j).real) print(1j / (1 + 2j)) -ans = 0j ** 0 +ans = 0j**0 print("%.5g %.5g" % (ans.real, ans.imag)) -ans = 0j ** 1 +ans = 0j**1 print("%.5g %.5g" % (ans.real, ans.imag)) -ans = 0j ** 0j +ans = 0j**0j print("%.5g %.5g" % (ans.real, ans.imag)) -ans = 1j ** 2.5 +ans = 1j**2.5 print("%.5g %.5g" % (ans.real, ans.imag)) -ans = 1j ** 2.5j +ans = 1j**2.5j print("%.5g %.5g" % (ans.real, ans.imag)) # comparison @@ -116,10 +116,10 @@ except ZeroDivisionError: # zero division via power try: - 0j ** -1 + 0j**-1 except ZeroDivisionError: print("ZeroDivisionError") try: - 0j ** 1j + 0j**1j except ZeroDivisionError: print("ZeroDivisionError") |