Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
migrate to python3 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson committed Apr 28, 2020
1 parent 74be359 commit 4d1bf92
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bin/device_group_report
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import argparse
import sys
Expand Down
2 changes: 1 addition & 1 deletion bin/start_android_hardware_testing.sh
Expand Up @@ -3,4 +3,4 @@
. /etc/bitbar/bitbar.env
. /home/bitbar/mozilla-bitbar-devicepool/venv/bin/activate
export PYTHONPATH=/home/bitbar/mozilla-bitbar-devicepool
python /home/bitbar/mozilla-bitbar-devicepool/mozilla_bitbar_devicepool/main.py start-test-run-manager --update-bitbar
python3 /home/bitbar/mozilla-bitbar-devicepool/mozilla_bitbar_devicepool/main.py start-test-run-manager --update-bitbar
6 changes: 2 additions & 4 deletions mozilla_bitbar_devicepool/__init__.py
Expand Up @@ -5,8 +5,6 @@
# mozilla_bitbar_devicepool
# https://mozilla.testdroid.com/cloud/swagger-ui.html

from __future__ import absolute_import

# we need to run basicConfig before any other module does
import logging

Expand All @@ -15,7 +13,7 @@

import copy
import os
import urlparse
import urllib.parse
import requests
from testdroid import Testdroid

Expand Down Expand Up @@ -104,7 +102,7 @@ def download_file(url, dest, max_attempts=3):
:max_attempts: integer number of times to attempt download.
Defaults to 3.
"""
parse_result = urlparse.urlparse(url)
parse_result = urllib.parse.urlparse(url)
if not parse_result.scheme or parse_result.scheme.startswith('file'):
local_file = open(parse_result.path)
with local_file:
Expand Down
2 changes: 0 additions & 2 deletions mozilla_bitbar_devicepool/configuration.py
Expand Up @@ -2,8 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

import os
import threading
import time
Expand Down
2 changes: 0 additions & 2 deletions mozilla_bitbar_devicepool/device_groups.py
Expand Up @@ -2,8 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

from mozilla_bitbar_devicepool import (
TESTDROID,
get_filter,
Expand Down
1 change: 0 additions & 1 deletion mozilla_bitbar_devicepool/devices.py
Expand Up @@ -2,7 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

from mozilla_bitbar_devicepool import (
TESTDROID,
Expand Down
2 changes: 0 additions & 2 deletions mozilla_bitbar_devicepool/files.py
Expand Up @@ -2,8 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

from mozilla_bitbar_devicepool import (
TESTDROID,
get_filter,
Expand Down
2 changes: 0 additions & 2 deletions mozilla_bitbar_devicepool/frameworks.py
Expand Up @@ -2,8 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

from mozilla_bitbar_devicepool import (
TESTDROID,
get_filter,
Expand Down
2 changes: 0 additions & 2 deletions mozilla_bitbar_devicepool/main.py
Expand Up @@ -2,8 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

import argparse
import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions mozilla_bitbar_devicepool/projects.py
Expand Up @@ -2,8 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

from mozilla_bitbar_devicepool import (
TESTDROID,
get_filter,
Expand Down
2 changes: 0 additions & 2 deletions mozilla_bitbar_devicepool/runs.py
Expand Up @@ -2,8 +2,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

import json

from mozilla_bitbar_devicepool import (
Expand Down

0 comments on commit 4d1bf92

Please sign in to comment.