commit | 994f04dbf576f4ebafb9de2bc6821e15cb0de0ea | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Tue Dec 27 15:09:36 2016 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Tue Dec 27 15:09:36 2016 +0200 |
tree | 4967ed9c9688f7fe035c646de993c337141051b0 | |
parent | 58c2c6ebb893917e759cc1401b0d862b3f7c1a94 [diff] [blame] |
Issue #28998: More APIs now support longs as well as ints.
diff --git a/Lib/compiler/pyassem.py b/Lib/compiler/pyassem.py index f52f7d0..b82073e 100644 --- a/Lib/compiler/pyassem.py +++ b/Lib/compiler/pyassem.py
@@ -581,7 +581,7 @@ def twobyte(val): """Convert an int argument into high and low bytes""" - assert isinstance(val, int) + assert isinstance(val, (int, long)) return divmod(val, 256) class LineAddrTable: