ソースを参照

Use bool() instead of if/else

master
Ricardo Branco 6年前
コミット
0593961243
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      clean_registry.py

+ 1
- 1
clean_registry.py ファイルの表示

@@ -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
 

読み込み中…
キャンセル
保存