Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remaining Python 3 builtins via six #1700

Merged
merged 2 commits into from
Jul 7, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion docs/iris/example_tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,3 +16,4 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa
3 changes: 2 additions & 1 deletion docs/iris/example_tests/extest_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -22,6 +22,7 @@
"""

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

import contextlib
import os.path
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_COP_1d_plot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_COP_maps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_SOI_filtering.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2012 - 2014, Met Office
# (C) British Crown Copyright 2012 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_TEC.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_anomaly_log_colouring.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2014, Met Office
# (C) British Crown Copyright 2014 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before
# importing anything else.
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_atlantic_profiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2013 - 2014, Met Office
# (C) British Crown Copyright 2013 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before
# importing anything else.
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_cross_section.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_custom_aggregation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2013 - 2014, Met Office
# (C) British Crown Copyright 2013 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before
# importing anything else.
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_custom_file_loading.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_deriving_phenomena.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_global_map.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_hovmoller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_lagged_ensemble.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_lineplot_with_legend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_orca_projection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2014, Met Office
# (C) British Crown Copyright 2014 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before
# importing anything else.
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_polar_stereo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2013 - 2014, Met Office
# (C) British Crown Copyright 2013 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised
# before importing anything else.
Expand Down
1 change: 1 addition & 0 deletions docs/iris/example_tests/test_polynomial_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before
# importing anything else.
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_projections_and_annotations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2014, Met Office
# (C) British Crown Copyright 2014 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before
# importing anything else.
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/example_tests/test_rotated_pole_mapping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests
Expand Down
5 changes: 3 additions & 2 deletions docs/iris/src/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

# -*- coding: utf-8 -*-
#
Expand Down Expand Up @@ -97,7 +98,7 @@
project = u'Iris'
# define the copyright information for latex builds. Note, for html builds,
# the copyright exists directly inside "_templates/layout.html"
copyright = u'British Crown Copyright 2010 - 2014, Met Office'
copyright = u'British Crown Copyright 2010 - 2015, Met Office'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
1 change: 1 addition & 0 deletions docs/iris/src/developers_guide/gitwash_dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
''' Checkout gitwash repo into directory and do search replace on name '''

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

import os
from os.path import join as pjoin
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/src/sphinxext/auto_label_figures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2014, Met Office
# (C) British Crown Copyright 2014 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

import os
from docutils import nodes
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/src/sphinxext/custom_class_autodoc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

from sphinx.ext import autodoc
from sphinx.ext.autodoc import *
Expand Down
1 change: 1 addition & 0 deletions docs/iris/src/sphinxext/custom_data_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

from sphinx.ext.autodoc import DataDocumenter, ModuleLevelDocumenter
try:
Expand Down
3 changes: 2 additions & 1 deletion docs/iris/src/sphinxext/gen_example_directory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2014, Met Office
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
Expand All @@ -21,6 +21,7 @@
'''

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

import os
import re
Expand Down
1 change: 1 addition & 0 deletions docs/iris/src/sphinxext/gen_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'''

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

import os
import glob
Expand Down
2 changes: 1 addition & 1 deletion docs/iris/src/sphinxext/generate_package_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)
from six.moves import filter
from six.moves import (filter, input, map, range, zip) # noqa

import os
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

Expand Down
1 change: 1 addition & 0 deletions docs/iris/src/userguide/plotting_examples/1d_simple.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

from __future__ import (absolute_import, division, print_function)
from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

Expand Down
Loading