]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/cmd/init.py
Remove Client __del__ in favor of context management
[bup.git] / lib / bup / cmd / init.py
index 4be83a28351cf1a32969ff219320820ee8a5f884..56fd123e33000f9025fac436ff69b61c86b352c2 100755 (executable)
@@ -28,5 +28,5 @@ def main(argv):
 
     if opt.remote:
         git.check_repo_or_die()
-        cli = client.Client(argv_bytes(opt.remote), create=True)
-        cli.close()
+        with client.Client(argv_bytes(opt.remote), create=True):
+            pass