[Libguestfs] [PATCH 3/8] python: PEP 8: remove trailing semicolons

Pino Toscano ptoscano at redhat.com
Wed May 4 14:23:13 UTC 2016


Remove extra semicolons at the end of single-statement lines.

No behaviour changes.
---
 python/examples/create_disk.py | 2 +-
 python/t/test810RHBZ811650.py  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/examples/create_disk.py b/python/examples/create_disk.py
index f8f6ebc..9fe43bc 100644
--- a/python/examples/create_disk.py
+++ b/python/examples/create_disk.py
@@ -11,7 +11,7 @@ output = "disk.img"
 g = guestfs.GuestFS(python_return_dict=True)
 
 # Create a raw-format sparse disk image, 512 MB in size.
-g.disk_create(output, "raw", 512 * 1024 * 1024);
+g.disk_create(output, "raw", 512 * 1024 * 1024)
 
 # Set the trace flag so that we can see each libguestfs call.
 g.set_trace(1)
diff --git a/python/t/test810RHBZ811650.py b/python/t/test810RHBZ811650.py
index 71386bb..3ca7a37 100644
--- a/python/t/test810RHBZ811650.py
+++ b/python/t/test810RHBZ811650.py
@@ -27,7 +27,7 @@ class Test810RHBZ811650(unittest.TestCase):
         g.disk_create("rhbz811650.img", "raw", 500 * 1024 * 1024)
 
         # Deliberate error: the disk format is supposed to be raw.
-        g.add_drive("rhbz811650.img", format="qcow2");
+        g.add_drive("rhbz811650.img", format="qcow2")
 
         # Because error() wasn't being called, guestfs_last_error
         # would return NULL, causing a segfault in the Python bindings
-- 
2.5.5




More information about the Libguestfs mailing list