소스 검색

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
 

Loading…
취소
저장