Skip to content

Commit

Permalink
Remove __future__ imports #295
Browse files Browse the repository at this point in the history
None of them are needed in Python 3.

Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Dec 4, 2020
1 parent c588b4e commit 186641b
Show file tree
Hide file tree
Showing 203 changed files with 0 additions and 605 deletions.
2 changes: 0 additions & 2 deletions etc/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"""

from __future__ import absolute_import
from __future__ import print_function

import io
import os
Expand Down
3 changes: 0 additions & 3 deletions etc/scripts/add_spdx_keys_as_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import io
import os.path
Expand Down
3 changes: 0 additions & 3 deletions etc/scripts/buildcopytests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import io
from os import path
Expand Down
3 changes: 0 additions & 3 deletions etc/scripts/buildlictests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import io
from os import path
Expand Down
3 changes: 0 additions & 3 deletions etc/scripts/buildrules.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import io
import os
Expand Down
2 changes: 0 additions & 2 deletions etc/scripts/deps_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function

import argparse
import os
Expand Down
2 changes: 0 additions & 2 deletions etc/scripts/deps_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function

import argparse
import os
Expand Down
2 changes: 0 additions & 2 deletions etc/scripts/freeze_and_update_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function

import argparse
from fnmatch import fnmatchcase
Expand Down
3 changes: 0 additions & 3 deletions etc/scripts/genlicspdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import io
import os
Expand Down
3 changes: 0 additions & 3 deletions etc/scripts/genurlrules.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

from collections import OrderedDict
import os
Expand Down
2 changes: 0 additions & 2 deletions etc/scripts/github_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function

import argparse
from pathlib import Path
Expand Down
2 changes: 0 additions & 2 deletions etc/scripts/irc-notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
"""

from __future__ import print_function
from __future__ import absolute_import

import os
from os import environ
Expand Down
4 changes: 0 additions & 4 deletions etc/scripts/scancli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from collections import OrderedDict
import json
Expand Down
4 changes: 0 additions & 4 deletions etc/scripts/scanserv.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

"""
Python2 "server side" of the scan server. In a given execnet session, this
Expand Down
2 changes: 0 additions & 2 deletions etc/scripts/search-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function

import argparse
import fnmatch
Expand Down
3 changes: 0 additions & 3 deletions etc/scripts/synclic.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

from collections import OrderedDict
import io
Expand Down
3 changes: 0 additions & 3 deletions etc/scripts/updateignorables.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function


import click
Expand Down
2 changes: 0 additions & 2 deletions src/cluecode/copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function

from collections import deque
from functools import partial
Expand Down
1 change: 0 additions & 1 deletion src/cluecode/copyrights_hint.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import

from datetime import datetime
import re
Expand Down
3 changes: 0 additions & 3 deletions src/cluecode/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

import string
import re
Expand Down
3 changes: 0 additions & 3 deletions src/cluecode/finder_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

from functools import partial

Expand Down
4 changes: 0 additions & 4 deletions src/cluecode/plugin_copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from collections import OrderedDict

Expand Down
4 changes: 0 additions & 4 deletions src/cluecode/plugin_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from functools import partial

Expand Down
4 changes: 0 additions & 4 deletions src/cluecode/plugin_filter_clues.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from itertools import chain

Expand Down
4 changes: 0 additions & 4 deletions src/cluecode/plugin_ignore_copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import re

Expand Down
4 changes: 0 additions & 4 deletions src/cluecode/plugin_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from functools import partial

Expand Down
3 changes: 0 additions & 3 deletions src/formattedcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

from itertools import chain

Expand Down
4 changes: 0 additions & 4 deletions src/formattedcode/output_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

from collections import OrderedDict

Expand Down
4 changes: 0 additions & 4 deletions src/formattedcode/output_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from collections import OrderedDict
import io
Expand Down
2 changes: 0 additions & 2 deletions src/formattedcode/output_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals

from collections import OrderedDict

Expand Down
2 changes: 0 additions & 2 deletions src/formattedcode/output_jsonlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import unicode_literals

from collections import OrderedDict

Expand Down
4 changes: 0 additions & 4 deletions src/formattedcode/output_spdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

from os.path import abspath
from os.path import basename
Expand Down
1 change: 0 additions & 1 deletion src/licensedcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import


# FIXME: we should consider the length of two rules and two matches when considering MAX_DIST
Expand Down
1 change: 0 additions & 1 deletion src/licensedcode/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import, print_function

from functools import partial
from hashlib import md5
Expand Down
2 changes: 0 additions & 2 deletions src/licensedcode/dmp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

from __future__ import absolute_import
from __future__ import division

from collections import namedtuple
import sys
Expand Down
3 changes: 0 additions & 3 deletions src/licensedcode/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

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

from array import array
from collections import Counter
Expand Down
3 changes: 0 additions & 3 deletions src/licensedcode/legal.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals

from commoncode import fileutils

Expand Down
3 changes: 0 additions & 3 deletions src/licensedcode/legalese.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

# This is a list of words that are specific to licenses. This list is used to
# classify words are legalese or less interesting non-legalese aka. junk words
Expand Down
3 changes: 0 additions & 3 deletions src/licensedcode/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

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

from functools import total_ordering
from itertools import groupby
Expand Down
3 changes: 0 additions & 3 deletions src/licensedcode/match_aho.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

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

from itertools import groupby

Expand Down
1 change: 0 additions & 1 deletion src/licensedcode/match_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.

from __future__ import print_function, absolute_import

from array import array
from hashlib import md5
Expand Down
Loading

0 comments on commit 186641b

Please sign in to comment.