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
# under the License.
import os
import re
import csv
import sys
import math
import datetime
import errno
import math
import os
import platform
import re
import signal
import socket
import timeit
import datetime
import platform
import sys
import threading
import timeit
import xml.parsers.expat
try:
@ -779,7 +779,7 @@ class Speedtest(object):
return self.config
def get_servers(self, servers=[]):
def get_servers(self, servers=()):
"""Retrieve a the list of speedtest.net servers, optionally filtered
to servers matching those specified in the ``servers`` argument
"""
@ -951,7 +951,7 @@ class Speedtest(object):
printer(self.closest, debug=True)
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
server has the lowest latency
"""