diff --git a/examples/python/bufr_attributes.py b/examples/python/bufr_attributes.py index 82f54777d..ecfe7bb08 100644 --- a/examples/python/bufr_attributes.py +++ b/examples/python/bufr_attributes.py @@ -14,8 +14,6 @@ # # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_check_table.py b/examples/python/bufr_check_table.py index 200cf2492..0c1b75b8a 100644 --- a/examples/python/bufr_check_table.py +++ b/examples/python/bufr_check_table.py @@ -10,8 +10,6 @@ # Description: Verify the given BUFR table (B or D) are correctly formed for ecCodes # -from __future__ import print_function - import os import sys diff --git a/examples/python/bufr_copy_data.py b/examples/python/bufr_copy_data.py index a7d27e694..d880d3b3e 100644 --- a/examples/python/bufr_copy_data.py +++ b/examples/python/bufr_copy_data.py @@ -13,7 +13,6 @@ # Description: How to copy all the values in the data section that are present in the same # position in the data tree and with the same number of values to the output handle # -from __future__ import print_function import sys import traceback diff --git a/examples/python/bufr_copy_data2.py b/examples/python/bufr_copy_data2.py index aa36f4ee4..2c0be0184 100644 --- a/examples/python/bufr_copy_data2.py +++ b/examples/python/bufr_copy_data2.py @@ -14,7 +14,6 @@ # position in the data tree and with the same number of values to the output handle. # This example is for messages which use the operator 203YYY (overridden reference values) # -from __future__ import print_function import sys import traceback diff --git a/examples/python/bufr_copy_data3.py b/examples/python/bufr_copy_data3.py index 9f02981c7..aff1bf710 100644 --- a/examples/python/bufr_copy_data3.py +++ b/examples/python/bufr_copy_data3.py @@ -14,7 +14,6 @@ # position in the data tree and with the same number of values to the output handle. # In this example we add the WIGOS sequence 301150 to a SYNOP # -from __future__ import print_function import sys import traceback diff --git a/examples/python/bufr_ecc-448.py b/examples/python/bufr_ecc-448.py index a864aeb6e..71ff25b9a 100644 --- a/examples/python/bufr_ecc-448.py +++ b/examples/python/bufr_ecc-448.py @@ -7,7 +7,6 @@ # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -from __future__ import print_function import sys import traceback diff --git a/examples/python/bufr_ecc-869.py b/examples/python/bufr_ecc-869.py index e39103aaa..4f7e69ee0 100644 --- a/examples/python/bufr_ecc-869.py +++ b/examples/python/bufr_ecc-869.py @@ -2,8 +2,6 @@ # and then edited to add the bitmap. # See ECC-869 -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_encode_flight.py b/examples/python/bufr_encode_flight.py index d3cd2a997..ce4a12e63 100644 --- a/examples/python/bufr_encode_flight.py +++ b/examples/python/bufr_encode_flight.py @@ -10,8 +10,6 @@ # Description: how to encode flight dataset into BUFR -from __future__ import print_function - import sys import traceback from datetime import datetime diff --git a/examples/python/bufr_expanded.py b/examples/python/bufr_expanded.py index f954b8d73..6c1a1bd7c 100644 --- a/examples/python/bufr_expanded.py +++ b/examples/python/bufr_expanded.py @@ -13,7 +13,7 @@ # Description: how to read values of different type of keys from BUFR messages. # -from __future__ import absolute_import, print_function +from __future__ import absolute_import import sys import traceback diff --git a/examples/python/bufr_get_keys.py b/examples/python/bufr_get_keys.py index 46b752ada..3f27cb01c 100644 --- a/examples/python/bufr_get_keys.py +++ b/examples/python/bufr_get_keys.py @@ -14,8 +14,6 @@ # # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_keys_iterator.py b/examples/python/bufr_keys_iterator.py index 3b5dc6d1e..f6751a352 100644 --- a/examples/python/bufr_keys_iterator.py +++ b/examples/python/bufr_keys_iterator.py @@ -15,8 +15,6 @@ # keys in a BUFR message. -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_read_header.py b/examples/python/bufr_read_header.py index 8327ae291..29b1ea173 100644 --- a/examples/python/bufr_read_header.py +++ b/examples/python/bufr_read_header.py @@ -15,8 +15,6 @@ # # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_read_sample.py b/examples/python/bufr_read_sample.py index 7ee13f659..be6804c8a 100644 --- a/examples/python/bufr_read_sample.py +++ b/examples/python/bufr_read_sample.py @@ -13,8 +13,6 @@ # Description: read key values from a BUFR sample message. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_read_scatterometer.py b/examples/python/bufr_read_scatterometer.py index 3433118d3..910682ed1 100644 --- a/examples/python/bufr_read_scatterometer.py +++ b/examples/python/bufr_read_scatterometer.py @@ -19,8 +19,6 @@ # understand the structure of these messages. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_read_synop.py b/examples/python/bufr_read_synop.py index 32aec4268..9d0d353e1 100644 --- a/examples/python/bufr_read_synop.py +++ b/examples/python/bufr_read_synop.py @@ -18,8 +18,6 @@ # messages than the one used in the example. It is advised to use bufr_dump to # understand the structure of the messages. -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_read_temp.py b/examples/python/bufr_read_temp.py index dd5f3a732..1564055fc 100644 --- a/examples/python/bufr_read_temp.py +++ b/examples/python/bufr_read_temp.py @@ -19,7 +19,6 @@ # messages than the one used in the example. It is advised to use bufr_dump to # understand the structure of the messages. # -from __future__ import print_function import sys import traceback diff --git a/examples/python/bufr_read_tempf.py b/examples/python/bufr_read_tempf.py index 13b19c9ad..da2f834f4 100644 --- a/examples/python/bufr_read_tempf.py +++ b/examples/python/bufr_read_tempf.py @@ -22,7 +22,6 @@ # messages than the one used in the example. It is advised to use bufr_dump to # understand the structure of the messages. # -from __future__ import print_function import sys import traceback diff --git a/examples/python/bufr_read_tropical_cyclone.py b/examples/python/bufr_read_tropical_cyclone.py index d0b02ec40..0ee981fed 100644 --- a/examples/python/bufr_read_tropical_cyclone.py +++ b/examples/python/bufr_read_tropical_cyclone.py @@ -16,8 +16,6 @@ # understand the structure of the messages. # -from __future__ import print_function - import collections import sys import traceback diff --git a/examples/python/bufr_set_keys.py b/examples/python/bufr_set_keys.py index 885c274a3..2de8d6f44 100644 --- a/examples/python/bufr_set_keys.py +++ b/examples/python/bufr_set_keys.py @@ -14,8 +14,6 @@ # # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/bufr_subset.py b/examples/python/bufr_subset.py index 657233a08..504f44367 100644 --- a/examples/python/bufr_subset.py +++ b/examples/python/bufr_subset.py @@ -14,8 +14,6 @@ # # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/get_product_kind.py b/examples/python/get_product_kind.py index da6d3b976..9f0f591d1 100644 --- a/examples/python/get_product_kind.py +++ b/examples/python/get_product_kind.py @@ -14,7 +14,6 @@ # Description: how to process a file containing a mix of messages # and print the kind of product (e.g. GRIB, BUFR etc) -from __future__ import print_function import sys import traceback diff --git a/examples/python/grib_ccsds.py b/examples/python/grib_ccsds.py index 70166af34..c53d35f4c 100644 --- a/examples/python/grib_ccsds.py +++ b/examples/python/grib_ccsds.py @@ -7,8 +7,6 @@ # granted to it by virtue of its status as an intergovernmental organisation # nor does it submit to any jurisdiction. -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_count_messages.py b/examples/python/grib_count_messages.py index 14ca11fe8..c2ea91099 100644 --- a/examples/python/grib_count_messages.py +++ b/examples/python/grib_count_messages.py @@ -9,8 +9,6 @@ # nor does it submit to any jurisdiction. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_get_keys.py b/examples/python/grib_get_keys.py index a07829b87..e49774465 100644 --- a/examples/python/grib_get_keys.py +++ b/examples/python/grib_get_keys.py @@ -12,8 +12,6 @@ # Description: how to get values using keys from GRIB messages # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_get_message_offset.py b/examples/python/grib_get_message_offset.py index 29d83c2d1..fe4060049 100644 --- a/examples/python/grib_get_message_offset.py +++ b/examples/python/grib_get_message_offset.py @@ -14,8 +14,6 @@ # Description: how to get the message offset # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_index.py b/examples/python/grib_index.py index 0949a3477..47efdec97 100644 --- a/examples/python/grib_index.py +++ b/examples/python/grib_index.py @@ -12,8 +12,6 @@ # Description: How to create and use an index to access GRIB messages from # a file -from __future__ import print_function - import os import sys import traceback diff --git a/examples/python/grib_iterator.py b/examples/python/grib_iterator.py index f417fbeff..4f9596f81 100644 --- a/examples/python/grib_iterator.py +++ b/examples/python/grib_iterator.py @@ -8,8 +8,6 @@ # virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_iterator_bitmap.py b/examples/python/grib_iterator_bitmap.py index 26ce35e5d..575edb106 100644 --- a/examples/python/grib_iterator_bitmap.py +++ b/examples/python/grib_iterator_bitmap.py @@ -12,7 +12,6 @@ # for missing values # (rather than compare each value with the missingValue key) # -from __future__ import print_function import sys import traceback diff --git a/examples/python/grib_keys_iterator.py b/examples/python/grib_keys_iterator.py index 327a98a9c..34dcac6d4 100644 --- a/examples/python/grib_keys_iterator.py +++ b/examples/python/grib_keys_iterator.py @@ -9,8 +9,6 @@ # nor does it submit to any jurisdiction. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_ls_JSON.py b/examples/python/grib_ls_JSON.py index 60692671b..ab7a05b95 100644 --- a/examples/python/grib_ls_JSON.py +++ b/examples/python/grib_ls_JSON.py @@ -11,8 +11,6 @@ # Description: how to read data of the ECMWF EPS tropical cyclone tracks encoded in BUFR format. # -from __future__ import print_function - import getopt import os import sys diff --git a/examples/python/grib_nearest.py b/examples/python/grib_nearest.py index 5d272be64..8ee11a7fd 100644 --- a/examples/python/grib_nearest.py +++ b/examples/python/grib_nearest.py @@ -9,8 +9,6 @@ # nor does it submit to any jurisdiction. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_print_data.py b/examples/python/grib_print_data.py index a32a76a12..c9ef87162 100644 --- a/examples/python/grib_print_data.py +++ b/examples/python/grib_print_data.py @@ -9,8 +9,6 @@ # nor does it submit to any jurisdiction. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_read_sample.py b/examples/python/grib_read_sample.py index 3e89d62b6..76feeb776 100644 --- a/examples/python/grib_read_sample.py +++ b/examples/python/grib_read_sample.py @@ -13,8 +13,6 @@ # Description: read key values from a GRIB sample message. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/grib_set_bitmap.py b/examples/python/grib_set_bitmap.py index 6531b4c56..581f9fd96 100644 --- a/examples/python/grib_set_bitmap.py +++ b/examples/python/grib_set_bitmap.py @@ -6,7 +6,6 @@ # In applying this licence, ECMWF does not waive the privileges and immunities granted to it by # virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. -from __future__ import print_function import sys import traceback diff --git a/examples/python/grib_set_keys.py b/examples/python/grib_set_keys.py index d5953b462..66e165de6 100644 --- a/examples/python/grib_set_keys.py +++ b/examples/python/grib_set_keys.py @@ -12,8 +12,6 @@ # Description: how to set key values in GRIB messages # -from __future__ import print_function - import sys import traceback from collections import OrderedDict diff --git a/examples/python/gts_get_keys.py b/examples/python/gts_get_keys.py index abacf06d3..c577ee958 100644 --- a/examples/python/gts_get_keys.py +++ b/examples/python/gts_get_keys.py @@ -13,8 +13,6 @@ # Description: how to read values of different type of keys from GTS messages. # -from __future__ import print_function - import sys import traceback diff --git a/examples/python/keys_iterator_gts.py b/examples/python/keys_iterator_gts.py index 543de92fe..50c1201bf 100644 --- a/examples/python/keys_iterator_gts.py +++ b/examples/python/keys_iterator_gts.py @@ -9,7 +9,6 @@ # nor does it submit to any jurisdiction. # -from __future__ import print_function import sys import traceback diff --git a/examples/python/metar_get_keys.py b/examples/python/metar_get_keys.py index 05ce9c227..ed311bc19 100644 --- a/examples/python/metar_get_keys.py +++ b/examples/python/metar_get_keys.py @@ -14,8 +14,6 @@ # # -from __future__ import print_function - import sys import traceback