Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable name change #89

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions mcstatus/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def lookup(address):

return MinecraftServer(host, port)

def ping(self, retries=3, **kwargs):
def ping(self, tries=3, **kwargs):
connection = TCPSocketConnection((self.host, self.port))
exception = None
for attempt in range(retries):
for attempt in range(tries):
try:
pinger = ServerPinger(connection, host=self.host, port=self.port, **kwargs)
pinger.handshake()
Expand All @@ -39,10 +39,10 @@ def ping(self, retries=3, **kwargs):
else:
raise exception

def status(self, retries=3, **kwargs):
def status(self, tries=3, **kwargs):
connection = TCPSocketConnection((self.host, self.port))
exception = None
for attempt in range(retries):
for attempt in range(tries):
try:
pinger = ServerPinger(connection, host=self.host, port=self.port, **kwargs)
pinger.handshake()
Expand All @@ -54,7 +54,7 @@ def status(self, retries=3, **kwargs):
else:
raise exception

def query(self, retries=3):
def query(self, tries=3):
exception = None
host = self.host
try:
Expand All @@ -64,7 +64,7 @@ def query(self, retries=3):
host = str(answer).rstrip(".")
except Exception as e:
pass
for attempt in range(retries):
for attempt in range(tries):
try:
connection = UDPSocketConnection((host, self.port))
querier = ServerQuerier(connection)
Expand Down