This commit is contained in:
Tushar Makkar 2016-11-11 12:09:43 +00:00 committed by GitHub
commit a7e7ab02d0
1 changed files with 9 additions and 9 deletions

View File

@ -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
""" """