summaryrefslogtreecommitdiff
path: root/postgresqleu/adyen/util.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-04 14:21:00 +0000
committerMagnus Hagander2019-01-04 14:21:00 +0000
commit40493ac75d12dba360658f8bd6ee03b66a70b81d (patch)
treec6c6010c71a4c109d5ef0548392ba58d026491c0 /postgresqleu/adyen/util.py
parent6d44349af29bcd83e477a48e2a555c1314bce7eb (diff)
Use proper floor division operator
py3 changes the / operator from current integer division (floor division) to instead be true division (float division). The // operator exists in both py3 and py2 and always performs floor division. Most of our important calculations already use Decimal with explicit number of decimal points which is safe against this. But for some cases like calculating pixels in pdfs and reports make sure that we explicitly use the // so we don't risk a change in behaviour when we eventually switch to py3.
Diffstat (limited to 'postgresqleu/adyen/util.py')
0 files changed, 0 insertions, 0 deletions