projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: value.py: _IntegerValue._value_to_int(): require `numbers.Integral`
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
value.py
diff --git
a/src/bindings/python/bt2/bt2/value.py
b/src/bindings/python/bt2/bt2/value.py
index 4fbe799286683b2ab3f0c2bd4fb289b0c0802392..81a72ffa785e7d735736e839714c30db69dfd315 100644
(file)
--- a/
src/bindings/python/bt2/bt2/value.py
+++ b/
src/bindings/python/bt2/bt2/value.py
@@
-286,8
+286,8
@@
class _IntegerValue(_IntegralValue):
super().__init__(ptr)
def _value_to_int(self, value):
super().__init__(ptr)
def _value_to_int(self, value):
- if not isinstance(value, numbers.
Re
al):
- raise TypeError('expecting a number object')
+ if not isinstance(value, numbers.
Integr
al):
+ raise TypeError('expecting a
n integral
number object')
value = int(value)
self._check_int_range(value)
value = int(value)
self._check_int_range(value)
This page took
0.024874 seconds
and
4
git commands to generate.