Skip to content

Commit 74c1280

Browse files
maxcapodi78maxcapodi78
authored andcommitted
Improved all Examples by adding reports
1 parent 8178e4f commit 74c1280

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

pyaedt/third_party/ironpython/plumbum/cli/i18n.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def ngettext(self, str1, strN, n):
1818
def get_translation_for(package_name):
1919
return NullTranslation()
2020

21+
2122
else:
2223
import gettext
2324
import os

pyaedt/third_party/ironpython/plumbum/cli/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def show_pil_double(self, im):
7777
pixl = new_im.getpixel((x, y * 2 + 1))
7878
print(
7979
colors.bg.rgb(*pixl) & colors.fg.rgb(*pix),
80-
"\u2580",
80+
u"\u2580",
8181
sep="",
8282
end="",
8383
)

pyaedt/third_party/ironpython/plumbum/fs/atomic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def locked_file(fileno, blocking=True):
5151
finally:
5252
UnlockFile(hndl, 0, 0, 0xFFFFFFFF, 0xFFFFFFFF)
5353

54+
5455
else:
5556
if hasattr(fcntl, "lockf"):
5657

pyaedt/third_party/ironpython/rpyc/lib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def exp_backoff(collision):
147147
"""
148148
n = min(collision, 10)
149149
supremum_adjustment = 1 if n > 3 else 0
150-
k = random.uniform(0, 2**n - supremum_adjustment)
150+
k = random.uniform(0, 2 ** n - supremum_adjustment)
151151
return k * 0.0000512
152152

153153

pyaedt/third_party/ironpython/rpyc/lib/compat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def callable(obj):
8181
def select(*args):
8282
raise ImportError("select not supported on this platform")
8383

84+
8485
else:
8586
# jython
8687
if hasattr(select_module, "cpython_compatible_select"):
@@ -206,6 +207,7 @@ def acquire_lock(lock, blocking, timeout):
206207
return lock.acquire(blocking, timeout.timeleft())
207208
return lock.acquire(blocking)
208209

210+
209211
else:
210212

211213
def acquire_lock(lock, blocking, timeout):

0 commit comments

Comments
 (0)