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 six imports #1675

Closed
wants to merge 2 commits into from
Closed
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
  •  
  •  
  •  
4 changes: 3 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,5 @@
# along with Iris. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)

import six
4 changes: 3 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 @@ -23,6 +23,8 @@

from __future__ import (absolute_import, division, print_function)

import six

import contextlib
import os.path
import sys
Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before
# importing anything else.
import iris.tests as tests
Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before
# importing anything else.
import iris.tests as tests
Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before
# importing anything else.
import iris.tests as tests
Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before
# importing anything else.
import iris.tests as tests
Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised
# before importing anything else.
import iris.tests as tests
Expand Down
2 changes: 2 additions & 0 deletions docs/iris/example_tests/test_polynomial_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before
# importing anything else.
import iris.tests as tests
Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before
# importing anything else.
import iris.tests as tests
Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# Import Iris tests first so that some things can be initialised before importing anything else.
import iris.tests as tests

Expand Down
6 changes: 4 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

# -*- coding: utf-8 -*-
#
# Iris documentation build configuration file, created by
Expand Down Expand Up @@ -97,7 +99,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
2 changes: 2 additions & 0 deletions docs/iris/src/developers_guide/gitwash_dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

from __future__ import (absolute_import, division, print_function)

import six

import os
from os.path import join as pjoin
import shutil
Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

import os
from docutils import nodes

Expand Down
4 changes: 3 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 @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

from sphinx.ext import autodoc
from sphinx.ext.autodoc import *

Expand Down
2 changes: 2 additions & 0 deletions docs/iris/src/sphinxext/custom_data_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

from __future__ import (absolute_import, division, print_function)

import six

from sphinx.ext.autodoc import DataDocumenter, ModuleLevelDocumenter
try:
# Use 'object_description' in place of the former 'safe_repr' function.
Expand Down
4 changes: 3 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 @@ -22,6 +22,8 @@

from __future__ import (absolute_import, division, print_function)

import six

import os
import re
import sys
Expand Down
Loading