mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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.
This commit is contained in:
@@ -57,4 +57,7 @@ $g->mkdir ("/foo");
|
||||
# the disk image.
|
||||
$g->upload ("/etc/resolv.conf", "/foo/resolv.conf");
|
||||
|
||||
exit 0
|
||||
# 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 ();
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
@@ -54,4 +54,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 the garbage collector. You only need to call close
|
||||
# if you want to close the handle right away.
|
||||
g.close()
|
||||
|
||||
Reference in New Issue
Block a user