Imports ordering fixed and Fixing mutable type issue
This commit is contained in:
parent
6685d91729
commit
62414b8300
18
speedtest.py
18
speedtest.py
|
@ -15,18 +15,18 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import csv
|
import csv
|
||||||
import sys
|
import datetime
|
||||||
import math
|
|
||||||
import errno
|
import errno
|
||||||
|
import math
|
||||||
|
import os
|
||||||
|
import platform
|
||||||
|
import re
|
||||||
import signal
|
import signal
|
||||||
import socket
|
import socket
|
||||||
import timeit
|
import sys
|
||||||
import datetime
|
|
||||||
import platform
|
|
||||||
import threading
|
import threading
|
||||||
|
import timeit
|
||||||
import xml.parsers.expat
|
import xml.parsers.expat
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -779,7 +779,7 @@ class Speedtest(object):
|
||||||
|
|
||||||
return self.config
|
return self.config
|
||||||
|
|
||||||
def get_servers(self, servers=[]):
|
def get_servers(self, servers=()):
|
||||||
"""Retrieve a the list of speedtest.net servers, optionally filtered
|
"""Retrieve a the list of speedtest.net servers, optionally filtered
|
||||||
to servers matching those specified in the ``servers`` argument
|
to servers matching those specified in the ``servers`` argument
|
||||||
"""
|
"""
|
||||||
|
@ -951,7 +951,7 @@ class Speedtest(object):
|
||||||
printer(self.closest, debug=True)
|
printer(self.closest, debug=True)
|
||||||
return self.closest
|
return self.closest
|
||||||
|
|
||||||
def get_best_server(self, servers=[]):
|
def get_best_server(self, servers=()):
|
||||||
"""Perform a speedtest.net "ping" to determine which speedtest.net
|
"""Perform a speedtest.net "ping" to determine which speedtest.net
|
||||||
server has the lowest latency
|
server has the lowest latency
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue