Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9e54a90
Removed unused six imports.
trexfeathers Oct 31, 2019
0a50dcc
Removed six from test_coding_standards.py.
trexfeathers Oct 31, 2019
5be4634
Removed six string_type usages.
trexfeathers Nov 1, 2019
8100a06
Removed uses of six.AssertRaisesRegex
trexfeathers Nov 1, 2019
4375d25
Removed uses of six.assertRaisesRegex.
trexfeathers Nov 1, 2019
ee9ad7c
Fixed formatting errors.
trexfeathers Nov 1, 2019
98dcd1d
Removed uses of six.assertCountEqual.
trexfeathers Nov 1, 2019
7b3e980
Removed uses of six iterators.
trexfeathers Nov 1, 2019
be89039
Continuation line for Stickler.
trexfeathers Nov 1, 2019
1076175
iter() warpper for index.values() in _separable_pair.
trexfeathers Nov 1, 2019
8ac9827
Removed uses of six.with_metaclass.
trexfeathers Nov 1, 2019
c5d3a92
Removed uses of six.text_type.
trexfeathers Nov 1, 2019
c07e9d1
Removed uses of six.PY2 and PY3.
trexfeathers Nov 1, 2019
92c015a
Removed the single use of six.integer_types.
trexfeathers Nov 1, 2019
c52a3e9
Removed uses of six.StringIO().
trexfeathers Nov 1, 2019
b9eb706
Improved StringIO import.
trexfeathers Nov 1, 2019
b102fe4
Fixed incorrect argument order for metclasses.
trexfeathers Nov 1, 2019
2b69987
Set Stickler flake8 option to python3 specifically.
trexfeathers Nov 1, 2019
a2a61c1
W605 r string for escape characters.
trexfeathers Nov 1, 2019
3845683
Removed use of six.create_bound_method.
trexfeathers Nov 1, 2019
73d81b6
Removed uses of six.moves.cPickle.
trexfeathers Nov 1, 2019
de82eee
Removed use of six.unichr.
trexfeathers Nov 1, 2019
a93430b
Revert "Removed use of six.unichr."
trexfeathers Nov 1, 2019
2996340
Removed use of six.unichr.
trexfeathers Nov 1, 2019
fc4ecce
Removed uses of six.moves.
trexfeathers Nov 1, 2019
4ffd8bc
Removed remaining six imports.
trexfeathers Nov 1, 2019
0c9aa05
Removed requirement references to six.
trexfeathers Nov 1, 2019
0bb116c
Removed six from fc_rules_cf.
trexfeathers Nov 1, 2019
8143b54
Removed uses of six.moves.
trexfeathers Nov 4, 2019
6dd3c3c
Comment tidy.
trexfeathers Nov 4, 2019
bc8bf5e
Single line break after file docstring.
trexfeathers Nov 4, 2019
de5dcd4
Fixed over-zealous removal of line breaks in 3 places.
trexfeathers Nov 4, 2019
5764aae
Merge branch 'py2_strip' into remove_six
trexfeathers Nov 4, 2019
26fb041
Merge branch 'py2_strip' into remove_six
trexfeathers Nov 4, 2019
c3e7dd1
Minor additional fixes
stephenworsley Nov 5, 2019
e5651ee
revert changes to comment capitalisation
stephenworsley Nov 5, 2019
95307eb
remove super arguments
stephenworsley Nov 5, 2019
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .stickler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
linters:
flake8:
python: 3

files:
ignore:
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/example_code/Meteorology/COP_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
doi:10.1029/2009EO210001.

"""
from six.moves import zip

import os.path
import matplotlib.pyplot as plt
import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/example_tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

from six.moves import (filter, input, map, range, zip) # noqa
2 changes: 0 additions & 2 deletions docs/iris/example_tests/extest_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

"""

from six.moves import (filter, input, map, range, zip) # noqa

import contextlib
import os.path
import warnings
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_COP_1d_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_COP_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_SOI_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_TEC.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_anomaly_log_colouring.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_atlantic_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_coriolis_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_cross_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_custom_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_custom_file_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_deriving_phenomena.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_global_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_hovmoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_inset_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_lagged_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_lineplot_with_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_load_nemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_orca_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_polar_stereo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_polynomial_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_projections_and_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_rotated_pole_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/example_tests/test_wind_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

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
2 changes: 0 additions & 2 deletions docs/iris/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

from six.moves import (filter, input, map, range, zip) # noqa

# -*- coding: utf-8 -*-
#
# Iris documentation build configuration file, created by
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/developers_guide/gitwash_dumper.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python
''' Checkout gitwash repo into directory and do search replace on name '''

from six.moves import (filter, input, map, range, zip) # noqa

import os
from os.path import join as pjoin
import shutil
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/sphinxext/auto_label_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

from six.moves import (filter, input, map, range, zip) # noqa

import os
from docutils import nodes

Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/sphinxext/custom_class_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

from six.moves import (filter, input, map, range, zip) # noqa

from sphinx.ext import autodoc
from sphinx.ext.autodoc import *
from sphinx.util import force_decode
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/sphinxext/custom_data_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

from six.moves import (filter, input, map, range, zip) # noqa

from sphinx.ext.autodoc import DataDocumenter, ModuleLevelDocumenter
try:
# Use 'object_description' in place of the former 'safe_repr' function.
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/sphinxext/gen_example_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
Generate the rst files for the examples
'''

from six.moves import (filter, input, map, range, zip) # noqa

import os
import re
import shutil
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/sphinxext/gen_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
Generate a thumbnail gallery of examples.
'''

from six.moves import (filter, input, map, range, zip) # noqa

import os
import glob
import re
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/sphinxext/generate_package_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.

from six.moves import (filter, input, map, range, zip) # noqa

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

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

import iris
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/userguide/plotting_examples/1d_simple.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

import iris
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/userguide/plotting_examples/1d_with_legend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

import iris
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/userguide/plotting_examples/brewer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt
import numpy as np

Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/userguide/plotting_examples/cube_blockplot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

import iris
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

import iris
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.cm as mpl_cm
import matplotlib.pyplot as plt

Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/userguide/plotting_examples/cube_contour.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

import iris
Expand Down
2 changes: 0 additions & 2 deletions docs/iris/src/userguide/plotting_examples/cube_contourf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import matplotlib.pyplot as plt

import iris
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import iris
import iris.quickplot as qplt
import iris.analysis
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import iris
import iris.analysis
import iris.plot as iplt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import iris
import iris.analysis
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from six.moves import (filter, input, map, range, zip) # noqa

import iris
import iris.analysis
import iris.plot as iplt
Expand Down
Loading