From 8d6456344b80fa5f8f745fc92e364ee8b6a75cbf Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Mon, 28 Apr 2014 15:23:30 -0700 Subject: giscanner: Enable "true division" for all Python files Import Python 3 compatible "true division" from the future (PEP 238). This changes the Python 2 classic division which uses floor division on integers to true division. Verfied we don't actually use the division operator anywhere in the code base so this a safety for supporting both Python 2 and 3. https://bugzilla.gnome.org/show_bug.cgi?id=679438 --- giscanner/shlibs.py | 1 + 1 file changed, 1 insertion(+) (limited to 'giscanner/shlibs.py') diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py index 424cad05..cd90cfb5 100644 --- a/giscanner/shlibs.py +++ b/giscanner/shlibs.py @@ -20,6 +20,7 @@ # from __future__ import absolute_import +from __future__ import division import os import platform -- cgit v1.2.1