Skip to content

Commit 7972e4b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 55e941f commit 7972e4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pyrp3/instrument.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ def __init__(self, size):
2323
self.size = size
2424

2525
def to_python(self, val):
26-
return int(
27-
intbv(val & (2**self.size - 1), min=0, max=2**self.size).signed()
28-
)
26+
return int(intbv(val & (2**self.size - 1), min=0, max=2**self.size).signed())
2927

3028
def to_binary(self, val):
3129
return intbv(val, min=-(2 ** (self.size - 1)), max=2 ** (self.size - 1))[

0 commit comments

Comments
 (0)