Skip to content

Commit

Permalink
Merge pull request #51 from QuLogic/py3k-division
Browse files Browse the repository at this point in the history
py3k: Use new-style division.

To ensure that future Python code will be compatible both for Python 2 and 3.
  • Loading branch information
Jehan committed Sep 10, 2016
2 parents f052590 + 671ff5c commit 9491163
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/scripts/dab_hardness_plot.py
@@ -1,4 +1,4 @@
from __future__ import absolute_import, print_function
from __future__ import absolute_import, division, print_function

import numpy as np
import matplotlib.pyplot as plt
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Expand Up @@ -11,7 +11,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

from __future__ import absolute_import, print_function
from __future__ import absolute_import, division, print_function

import os

Expand Down
2 changes: 1 addition & 1 deletion examples/gegl.py
@@ -1,5 +1,5 @@

from __future__ import absolute_import, print_function
from __future__ import absolute_import, division, print_function

from gi.repository import GeglGtk3 as GeglGtk
from gi.repository import Gegl, Gtk
Expand Down
2 changes: 1 addition & 1 deletion generate.py
Expand Up @@ -18,7 +18,7 @@

"Code generator, part of the build process."

from __future__ import absolute_import, print_function
from __future__ import absolute_import, division, print_function

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion tests/ctests.py
@@ -1,5 +1,5 @@

from __future__ import absolute_import, print_function
from __future__ import absolute_import, division, print_function

import os

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ctests.py
@@ -1,5 +1,5 @@

from __future__ import absolute_import, print_function
from __future__ import absolute_import, division, print_function

import os
import ctests
Expand Down

0 comments on commit 9491163

Please sign in to comment.