Skip to content

Commit

Permalink
Merge branch 'wip/jtojnar/black'
Browse files Browse the repository at this point in the history
This branch was already squash-merged in 7c36fe2.

Merging it again so that individual commits are preserved for Git archaelogy.
  • Loading branch information
jtojnar committed Sep 22, 2024
2 parents cf0a719 + 28a5e76 commit 891e797
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gui/brushmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,10 +860,10 @@ def export_group(self, group, filename):
"""
brushes = self.get_group_brushes(group)
order_conf = b'Group: %s\n' % utf8(group)
order_conf = b"Group: %s\n" % utf8(group)
with zipfile.ZipFile(
filename,
mode='w',
mode="w",
strict_timestamps=False,
) as zf:
for brush in brushes:
Expand Down
2 changes: 1 addition & 1 deletion lib/strokemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ class _Tile:
"""

_ZDATA_ONES = zlib.compress(np.ones((N, N), 'uint8').tobytes())
_ZDATA_ONES = zlib.compress(np.ones((N, N), "uint8").tobytes())

def __init__(self):
"""Initialize, as a tile filled with all ones."""
Expand Down
8 changes: 2 additions & 6 deletions tests/unported/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,8 @@ def memory_after_startup(gui):
sys.exit(1)

if options.show_profile:
gprof2dot = "gprof2dot.py" \
if shutil.which("gprof2dot.py") \
else "gprof2dot"
viewer = "feh" \
if shutil.which("feh") \
else "eog"
gprof2dot = "gprof2dot.py" if shutil.which("gprof2dot.py") else "gprof2dot"
viewer = "feh" if shutil.which("feh") else "eog"
# FIXME: use gui.profiling's improved code somehow
os.system(
"%s -f pstats tmp.pstats | dot -Tpng -o tmp.png && %s tmp.png"
Expand Down

0 comments on commit 891e797

Please sign in to comment.