Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove python2 support in imports #1404

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions analytics/report-analytics
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ import argparse
import os
import subprocess
import sys
try:
from commands import getstatusoutput
from urllib import urlopen
except ImportError:
from subprocess import getstatusoutput
from urllib.request import urlopen
from subprocess import getstatusoutput
from urllib.request import urlopen


def python_version():
Expand Down
5 changes: 1 addition & 4 deletions ci/sync-mapusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
from requests import get
from random import choice
import yaml,sys
try:
from urlparse import urlsplit,urlunsplit
except ImportError:
from urllib.parse import urlsplit,urlunsplit
from urllib.parse import urlsplit,urlunsplit

url = sys.argv[1]
mesos_dns = "leader.mesos:8123"
Expand Down
5 changes: 1 addition & 4 deletions report-pr-errors
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
from __future__ import print_function

from argparse import ArgumentParser, Namespace
try:
from commands import getstatusoutput
except ImportError:
from subprocess import getstatusoutput
from subprocess import getstatusoutput
from collections import deque
from fnmatch import fnmatch
from glob import glob
Expand Down
Loading