home · contact · privacy
"while 1" -> "while True"
authorChristian Heller <c.heller@plomlompom.de>
Sun, 17 Jan 2016 22:50:31 +0000 (23:50 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 17 Jan 2016 22:50:31 +0000 (23:50 +0100)
plomlombot.py

index a47158c302a3341cbe3e3777410b6e073c0a485d..5fcd517a95f563cfba7a00146d1e6359780a0472 100755 (executable)
@@ -141,7 +141,7 @@ def lineparser_loop(io, nickname):
         msg = str.join(" ", tokens[3:])[1:]
         url_check(msg)
 
-    while 1:
+    while True:
         line = io.recv_line()
         if not line:
             continue
@@ -177,7 +177,7 @@ def parse_command_line_arguments():
     return opts
 
 opts = parse_command_line_arguments()
-while 1:
+while True:
     try:
         io = init_session(opts.server, opts.port, opts.timeout, opts.nickname,
                           opts.username, opts.CHANNEL)