Skip to content

Commit 7d633c5

Browse files
committed
Rename "bool"
"bool" is a built-in function, so while this works, it is a bit weird and masks the built-in function.
1 parent 588199c commit 7d633c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

auth_mysql.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,20 @@ def ejabberd_in():
9494
return income
9595

9696

97-
def ejabberd_out(bool):
98-
logging.debug("Ejabberd gets: %s" % bool)
97+
def ejabberd_out(output):
98+
logging.debug("Ejabberd gets: %s" % output)
9999

100-
token = genanswer(bool)
100+
token = genanswer(output)
101101

102102
logging.debug("sent bytes: %#x %#x %#x %#x" % (ord(token[0]), ord(token[1]), ord(token[2]), ord(token[3])))
103103

104104
sys.stdout.write(token)
105105
sys.stdout.flush()
106106

107107

108-
def genanswer(bool):
108+
def genanswer(answer):
109109
answer = 0
110-
if bool:
110+
if answer:
111111
answer = 1
112112
token = struct.pack('>hh', 2, answer)
113113
return token

0 commit comments

Comments
 (0)