Skip to content

Commit a8ae994

Browse files
author
Philip Guo
committed
python 2 still has 'long' type, so put it back in
1 parent 036d49a commit a8ae994

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PyTutorGAE/pg_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def set_function_parent_frame_ID(self, ref_obj, enclosing_frame_id):
9494
# and as a side effect, update encoded_heap_objects
9595
def encode(self, dat):
9696
# primitive type
97-
if type(dat) in (int, float, str, bool, type(None)):
97+
if type(dat) in (int, long, float, str, bool, type(None)):
9898
return dat
9999

100100
# compound type - return an object reference and update encoded_heap_objects

0 commit comments

Comments
 (0)