Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
more stable way to get background color for bytecode block; bump to v…
Browse files Browse the repository at this point in the history
…0.1.3
  • Loading branch information
JoshKarpel committed Oct 1, 2020
1 parent 72c8c7d commit 251161f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dis_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def make_source_and_bytecode_display(function: Any, theme: str) -> Columns:

source_block = make_source_block(code_lines, block_width=half_width, theme=theme)
bytecode_block = make_bytecode_block(
instruction_rows, block_width=half_width, bgcolor=source_block._background_color
instruction_rows,
block_width=half_width,
bgcolor=Syntax.get_theme(theme).get_background_style().bgcolor,
)
line_numbers_block = make_nums_block(line_numbers)

Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = dis_cli
version = 0.1.2
version = 0.1.3
description = A tool to inspect disassembled Python code on the command line.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down Expand Up @@ -28,7 +28,7 @@ classifiers =
py_modules = dis_cli
install_requires =
click>=7
rich>=6
rich>=7
python_requires = >=3.6

[options.entry_points]
Expand Down

0 comments on commit 251161f

Please sign in to comment.