]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone: drop py2 support
authorKefu Chai <kchai@redhat.com>
Sun, 28 Jun 2020 11:10:01 +0000 (19:10 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 5 Jul 2020 02:58:28 +0000 (10:58 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/standalone/special/ceph_objectstore_tool.py

index 79bb70d6a73d799778a89a5865f932729e91d07b..17c3383233ceff21cd2817ab530893220c324b1d 100755 (executable)
@@ -688,10 +688,7 @@ def test_removeall(CFSD_PREFIX, db, OBJREPPGS, REP_POOL, CEPH_BIN, OSDDIR, REP_N
 
 
 def main(argv):
-    if sys.version_info[0] < 3:
-        sys.stdout = stdout = os.fdopen(sys.stdout.fileno(), 'wb', 0)
-    else:
-        stdout = sys.stdout.buffer
+    stdout = sys.stdout.buffer
     if len(argv) > 1 and argv[1] == "debug":
         nullfd = stdout
     else: