Skip to content

Commit

Permalink
tools: Remove print_function.
Browse files Browse the repository at this point in the history
Tweaked by tabbott to exclude the linter libraries.
  • Loading branch information
rht authored and timabbott committed Sep 29, 2017
1 parent 71188d7 commit f15bdce
Show file tree
Hide file tree
Showing 51 changed files with 0 additions and 55 deletions.
1 change: 0 additions & 1 deletion tools/check-capitalization
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

# check for the venv
from lib import sanity_check
Expand Down
1 change: 0 additions & 1 deletion tools/check-css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from lib.css_parser import parse, CssParserException
from typing import Iterable, Text
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/check-frontend-i18n
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

from typing import List, Text
# check for the venv
Expand Down
1 change: 0 additions & 1 deletion tools/check-issue-labels
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import requests
import re
Expand Down
1 change: 0 additions & 1 deletion tools/check-provision
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import os
import optparse
Expand Down
1 change: 0 additions & 1 deletion tools/check-templates
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from lib.template_parser import validate
from lib.html_branches import build_id_dict
from lib.pretty_print import validate_indent_html
Expand Down
1 change: 0 additions & 1 deletion tools/check-urls
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import re
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/compile-handlebars-templates
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import os
import glob
Expand Down
1 change: 0 additions & 1 deletion tools/create-test-api-docs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

# check for the venv
from lib import sanity_check
Expand Down
1 change: 0 additions & 1 deletion tools/diagnose
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import os
import platform
import sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import os
import pathlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import os

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import logging
import re
Expand Down
1 change: 0 additions & 1 deletion tools/find-add-class
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

from lib.find_add_class import display, find
import glob
Expand Down
1 change: 0 additions & 1 deletion tools/get-handlebar-vars
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
import sys
import re
import json
Expand Down
1 change: 0 additions & 1 deletion tools/html-grep
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from lib.html_grep import grep
import optparse
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/js-dep-visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
$ dot -Tpng var/zulip-deps.dot -o var/zulip-deps.png
"""

from __future__ import print_function

import os
import re
Expand Down
1 change: 0 additions & 1 deletion tools/lib/api_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

if False:
from typing import Any
Expand Down
1 change: 0 additions & 1 deletion tools/lib/css_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from six.moves import range
from typing import Callable, List, Tuple, Union

Expand Down
1 change: 0 additions & 1 deletion tools/lib/find_add_class.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

from typing import List, Set, Tuple

Expand Down
1 change: 0 additions & 1 deletion tools/lib/graph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

from collections import defaultdict

Expand Down
2 changes: 0 additions & 2 deletions tools/lib/html_branches.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

from typing import Dict, List, Optional, Set

import re
Expand Down
1 change: 0 additions & 1 deletion tools/lib/html_grep.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from collections import defaultdict
from six.moves import range
from typing import Dict, List, Set
Expand Down
1 change: 0 additions & 1 deletion tools/lib/pretty_print.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

from typing import Any, Dict, List

Expand Down
1 change: 0 additions & 1 deletion tools/lib/provision.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
import os
import sys
import logging
Expand Down
1 change: 0 additions & 1 deletion tools/lib/sanity_check.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import os
import pwd
Expand Down
1 change: 0 additions & 1 deletion tools/lib/template_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from typing import Callable, List, Optional
from six.moves import range
import re
Expand Down
2 changes: 0 additions & 2 deletions tools/lib/test_script.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

from typing import Optional, Tuple

import os
Expand Down
1 change: 0 additions & 1 deletion tools/lib/test_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

import os
import subprocess
Expand Down
1 change: 0 additions & 1 deletion tools/minify-js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# Minifies JavaScripts, creating source maps

from __future__ import print_function

import os
import subprocess
Expand Down
1 change: 0 additions & 1 deletion tools/pretty-print-html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
from typing import List
from lib.pretty_print import pretty_print_html
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/renumber-migrations
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
from six.moves import input, map, range
import glob
import os
Expand Down
1 change: 0 additions & 1 deletion tools/replace-tarball-shebang
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function

import io
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/review
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import subprocess
import sys

Expand Down
1 change: 0 additions & 1 deletion tools/run-dev.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import optparse
import os
Expand Down
1 change: 0 additions & 1 deletion tools/run-mypy
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function

import os
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/show-profile-results.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
import sys
import pstats

Expand Down
1 change: 0 additions & 1 deletion tools/stop_run_dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function

import os
import signal
Expand Down
1 change: 0 additions & 1 deletion tools/test-api
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
import os
import sys

Expand Down
1 change: 0 additions & 1 deletion tools/test-backend
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
from typing import List, Any
import glob
import optparse
Expand Down
1 change: 0 additions & 1 deletion tools/test-help-documentation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
import optparse
import os
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/test-js-with-node
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from __future__ import print_function
import optparse
import os
import subprocess
Expand Down
1 change: 0 additions & 1 deletion tools/test-queue-worker-reload
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function

import os
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/test-run-dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function

import os
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/test-tools
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function

import argparse
import os
Expand Down
1 change: 0 additions & 1 deletion tools/tests/test_css_parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

from typing import cast, Any

Expand Down
1 change: 0 additions & 1 deletion tools/tests/test_html_branches.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

import unittest
import os
Expand Down
2 changes: 0 additions & 2 deletions tools/tests/test_pretty_print.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import unittest

from tools.lib.pretty_print import pretty_print_html
Expand Down
2 changes: 0 additions & 2 deletions tools/tests/test_template_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

from typing import Optional, Any

import sys
Expand Down
1 change: 0 additions & 1 deletion tools/update-authors-json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Fetch contributors data from Github using their API, convert it to structured
JSON data for the /about page authors section.
"""


# check for the venv
from lib import sanity_check
sanity_check.check_venv(__file__)
Expand Down
1 change: 0 additions & 1 deletion tools/zulip-export/zulip-export
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

from __future__ import print_function
import sys
import os
import optparse
Expand Down

0 comments on commit f15bdce

Please sign in to comment.