Explorar el Código

Use bool() instead of if/else

master
Ricardo Branco hace 6 años
padre
commit
0593961243
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py Ver fichero

@@ -261,7 +261,7 @@ class RegistryCleaner():
261 261
             if not args.quiet:
262 262
                 for line in cli.logs(stream=True):
263 263
                     print(line.decode('utf-8'), end="")
264
-            status = True if cli.wait()['StatusCode'] == 0 else False
264
+            status = bool(cli.wait()['StatusCode'] == 0)
265 265
             cli.remove()
266 266
         return status
267 267
 

Loading…
Cancelar
Guardar