commit | 8d4d731fb7848841adb91cfb3bed162a14c679e7 | [log] [tgz] |
---|---|---|
author | Serge Guelton <sguelton@quarkslab.com> | Tue Dec 18 08:38:50 2018 +0000 |
committer | Serge Guelton <sguelton@quarkslab.com> | Tue Dec 18 08:38:50 2018 +0000 |
tree | 09568f0f765db8f324f9d83054748e9fa81cb723 | |
parent | 4f672fc63af4f838531fa8b85152024c037ccea3 [diff] |
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349455 91177308-0d34-0410-b5e6-96231b3b80d8