diff options
author | Serge Guelton <sguelton@quarkslab.com> | 2018-12-18 08:38:50 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@quarkslab.com> | 2018-12-18 08:38:50 +0000 |
commit | 3744de522c3968b803b56f87e7272a05bb308001 (patch) | |
tree | ed1bc52e56f09ed00e0e120b113260f3283b7b5a /lldb/packages/Python/lldbsuite/test/python_api | |
parent | c0ebe773cd0fb301474430205c69440f9915d5b0 (diff) | |
download | bcm5719-llvm-3744de522c3968b803b56f87e7272a05bb308001.tar.gz bcm5719-llvm-3744de522c3968b803b56f87e7272a05bb308001.zip |
Portable Python script across Python version
In Python2, division between integer yields an integer, while it yields a float in Python3.
Use a combination of from __future__ import division and // operator to get a portable behavior.
Differential Revision: https://reviews.llvm.org/D55204
llvm-svn: 349455
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions