From 27ebf517fae972eee49ae5911a03fabe5f4b6e54 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 3 Jul 2012 14:42:10 +0100 Subject: perl, python, ruby: Fix comments on call to close method. Make the comments consistent. Also make the Perl example call $g->close explicitly so it is consistent with the other examples. --- python/examples/create_disk.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') diff --git a/python/examples/create_disk.py b/python/examples/create_disk.py index bf47c916..0885383e 100644 --- a/python/examples/create_disk.py +++ b/python/examples/create_disk.py @@ -51,4 +51,7 @@ g.mkdir ("/foo") # the disk image. g.upload ("/etc/resolv.conf", "/foo/resolv.conf") +# Note also that handles are automatically closed if they are +# reaped by reference counting. You only need to call close +# if you want to close the handle right away. g.close () -- cgit