From 4025ad620279a1a543d6df427447ddd871b7429c Mon Sep 17 00:00:00 2001 From: Dan Oneata Date: Tue, 18 Oct 2016 23:44:11 +0300 Subject: [PATCH] Python2.x: Add backwards compatibility with Python2.x --- example/example.py | 5 +++++ selectivesearch/selectivesearch.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/example/example.py b/example/example.py index 2d8aaed..881adba 100644 --- a/example/example.py +++ b/example/example.py @@ -1,4 +1,9 @@ # -*- coding: utf-8 -*- +from __future__ import ( + division, + print_function, +) + import skimage.data import matplotlib.pyplot as plt import matplotlib.patches as mpatches diff --git a/selectivesearch/selectivesearch.py b/selectivesearch/selectivesearch.py index 14ece93..c5b5e41 100644 --- a/selectivesearch/selectivesearch.py +++ b/selectivesearch/selectivesearch.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +from __future__ import division + import skimage.io import skimage.feature import skimage.color