Run 2to3 -f future . -w

This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
This commit is contained in:
Feanil Patel
2019-12-30 10:35:30 -05:00
parent 52a1a72c97
commit 9cf2f9f298
2829 changed files with 2851 additions and 2851 deletions

View File

@@ -1,7 +1,7 @@
"""
Show Event outputs.
"""
from __future__ import absolute_import, print_function
import json
import sys

View File

@@ -5,7 +5,7 @@
# add them below. This file is consumed by
# scripts/dead_code/find-dead-code.sh
from __future__ import absolute_import
from vulture.whitelist_utils import Whitelist

View File

@@ -1,4 +1,4 @@
from __future__ import absolute_import, print_function
import argparse
import csv

View File

@@ -4,7 +4,7 @@ lists of each pytest worker.
Assumes the following format:
[test-suite] [worker] RESULT test
"""
from __future__ import absolute_import
import io
import os

View File

@@ -2,7 +2,7 @@
Manages the creation and termination of EC2 workers, to be used with pytest-xdist
as part of the CI process on Jenkins.
"""
from __future__ import absolute_import
import argparse
import logging
import time

View File

@@ -2,7 +2,7 @@
"""
Tests for linters.py
"""
from __future__ import absolute_import, print_function
import textwrap
from unittest import TestCase

View File

@@ -2,7 +2,7 @@
"""
Tests for main.py
"""
from __future__ import absolute_import
import re
from six import StringIO

View File

@@ -1,4 +1,4 @@
from __future__ import absolute_import
from unittest import TestCase

View File

@@ -4,7 +4,7 @@ A linting tool to check for xss vulnerabilities.
"""
from __future__ import absolute_import
if __name__ == "__main__":
from xsslint.main import main

View File

@@ -1,5 +1,5 @@
# Default xsslint config module.
from __future__ import absolute_import
from xsslint.linters import (
JavaScriptLinter, MakoTemplateLinter,

View File

@@ -1,7 +1,7 @@
"""
Linter classes containing logic for checking various filetypes.
"""
from __future__ import absolute_import
import ast
import io

View File

@@ -1,7 +1,7 @@
"""
The main function for the XSS linter.
"""
from __future__ import absolute_import
import argparse
import importlib

View File

@@ -1,7 +1,7 @@
"""
Utility classes for reporting linter results.
"""
from __future__ import absolute_import, print_function
import os
import re

View File

@@ -1,7 +1,7 @@
"""
Utility classes/functions for the XSS Linter.
"""
from __future__ import absolute_import
import re

View File

@@ -1,7 +1,7 @@
"""
Custom AST NodeVisitor classes uses for Python xss linting.
"""
from __future__ import absolute_import
import ast
import re

View File

@@ -1,5 +1,5 @@
# xsslint config module for edx-platform
from __future__ import absolute_import
import os
import sys