Imports ordering fixed and Fixing mutable type issue

This commit is contained in:
Tushar Makkar 2016-11-11 17:02:52 +05:30
parent 6685d91729
commit 62414b8300
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
""" """