summaryrefslogtreecommitdiff
path: root/xgpsspeed
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-03-25 10:53:45 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-03-25 10:53:45 -0400
commit3b9830cfb4bba61bd805435b31274ab1f95a2372 (patch)
tree383ea452963dfbca9a6a409d2481b0fa809506e3 /xgpsspeed
parent1a7870ae133bb3856fd946eae03e8f45aa40e0f5 (diff)
downloadgpsd-3b9830cfb4bba61bd805435b31274ab1f95a2372.tar.gz
xgps/xgpsspeed port cleanup: deal with Python 3 division semantics.
Diffstat (limited to 'xgpsspeed')
-rwxr-xr-xxgpsspeed3
1 files changed, 3 insertions, 0 deletions
diff --git a/xgpsspeed b/xgpsspeed
index ab573ffb..e60482ac 100755
--- a/xgpsspeed
+++ b/xgpsspeed
@@ -7,6 +7,9 @@
#
# BSD terms apply: see the file COPYING in the distribution root for details.
+# This code runs under both Python 2 and Python 3. Preserve this property!
+from __future__ import division
+
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk