All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] Use Python 2.6 "except E as ..." syntax
@ 2015-12-17 10:06 Markus Armbruster
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 1/4] qapi: " Markus Armbruster
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Markus Armbruster @ 2015-12-17 10:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, qemu-block, mdroth, stefanha

I can take this through my tree, but of course don't mind if a
maintainer prefers to pick up "his" parts.

Markus Armbruster (4):
  qapi: Use Python 2.6 "except E as ..." syntax
  scripts/qmp: Use Python 2.6 "except E as ..." syntax
  Revert "tracetool: use Python 2.4-compatible exception handling
    syntax"
  tests: Use Python 2.6 "except E as ..." syntax

 scripts/qapi.py              |  8 ++++----
 scripts/qmp/qemu-ga-client   |  2 +-
 scripts/qmp/qmp              |  4 ++--
 scripts/qmp/qmp-shell        |  2 +-
 scripts/qmp/qmp.py           |  4 ++--
 scripts/tracetool.py         |  4 ++--
 tests/image-fuzzer/runner.py | 12 ++++++------
 tests/qemu-iotests/qed.py    |  2 +-
 8 files changed, 19 insertions(+), 19 deletions(-)

-- 
2.4.3

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Qemu-devel] [PATCH 1/4] qapi: Use Python 2.6 "except E as ..." syntax
  2015-12-17 10:06 [Qemu-devel] [PATCH 0/4] Use Python 2.6 "except E as ..." syntax Markus Armbruster
@ 2015-12-17 10:06 ` Markus Armbruster
  2015-12-17 17:26   ` Eric Blake
  2015-12-17 20:00   ` Peter Maydell
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 2/4] scripts/qmp: " Markus Armbruster
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 15+ messages in thread
From: Markus Armbruster @ 2015-12-17 10:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, qemu-block, mdroth, stefanha

PEP 8 calls for it, because it's forward compatibile with Python 3.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 scripts/qapi.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/qapi.py b/scripts/qapi.py
index 7c50cc4..ba7151b 100644
--- a/scripts/qapi.py
+++ b/scripts/qapi.py
@@ -152,7 +152,7 @@ class QAPISchemaParser(object):
                     continue
                 try:
                     fobj = open(incl_abs_fname, 'r')
-                except IOError, e:
+                except IOError as e:
                     raise QAPIExprError(expr_info,
                                         '%s: %s' % (e.strerror, include))
                 exprs_include = QAPISchemaParser(fobj, previously_included,
@@ -1148,7 +1148,7 @@ class QAPISchema(object):
             self._predefining = False
             self._def_exprs()
             self.check()
-        except (QAPISchemaError, QAPIExprError), err:
+        except (QAPISchemaError, QAPIExprError) as err:
             print >>sys.stderr, err
             exit(1)
 
@@ -1639,7 +1639,7 @@ def parse_command_line(extra_options="", extra_long_options=[]):
                                        "chp:o:" + extra_options,
                                        ["source", "header", "prefix=",
                                         "output-dir="] + extra_long_options)
-    except getopt.GetoptError, err:
+    except getopt.GetoptError as err:
         print >>sys.stderr, "%s: %s" % (sys.argv[0], str(err))
         sys.exit(1)
 
@@ -1693,7 +1693,7 @@ def open_output(output_dir, do_c, do_h, prefix, c_file, h_file,
     if output_dir:
         try:
             os.makedirs(output_dir)
-        except os.error, e:
+        except os.error as e:
             if e.errno != errno.EEXIST:
                 raise
 
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [Qemu-devel] [PATCH 2/4] scripts/qmp: Use Python 2.6 "except E as ..." syntax
  2015-12-17 10:06 [Qemu-devel] [PATCH 0/4] Use Python 2.6 "except E as ..." syntax Markus Armbruster
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 1/4] qapi: " Markus Armbruster
@ 2015-12-17 10:06 ` Markus Armbruster
  2015-12-17 17:27   ` Eric Blake
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 3/4] Revert "tracetool: use Python 2.4-compatible exception handling syntax" Markus Armbruster
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2015-12-17 10:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, qemu-block, mdroth, stefanha

PEP 8 calls for it, because it's forward compatibile with Python 3.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 scripts/qmp/qemu-ga-client | 2 +-
 scripts/qmp/qmp            | 4 ++--
 scripts/qmp/qmp-shell      | 2 +-
 scripts/qmp/qmp.py         | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/qmp/qemu-ga-client b/scripts/qmp/qemu-ga-client
index 9908f21..fd05605 100755
--- a/scripts/qmp/qemu-ga-client
+++ b/scripts/qmp/qemu-ga-client
@@ -259,7 +259,7 @@ def main(address, cmd, args):
 
     try:
         client = QemuGuestAgentClient(address)
-    except QemuGuestAgent.error, e:
+    except QemuGuestAgent.error as e:
         import errno
 
         print(e)
diff --git a/scripts/qmp/qmp b/scripts/qmp/qmp
index 1db3c7f..514b539 100755
--- a/scripts/qmp/qmp
+++ b/scripts/qmp/qmp
@@ -91,8 +91,8 @@ def main(args):
         try:
             os.environ['QMP_PATH'] = path
             os.execvp(fullcmd, [fullcmd] + args)
-        except OSError, (errno, msg):
-            if errno == 2:
+        except OSError as exc:
+            if exc.errno == 2:
                 print 'Command "%s" not found.' % (fullcmd)
                 return 1
             raise
diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index fa39bf0..7a402ed 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -240,7 +240,7 @@ class QMPShell(qmp.QEMUMonitorProtocol):
     def _execute_cmd(self, cmdline):
         try:
             qmpcmd = self.__build_cmd(cmdline)
-        except Exception, e:
+        except Exception as e:
             print 'Error while parsing command line: %s' % e
             print 'command format: <command-name> ',
             print '[arg-name1=arg1] ... [arg-nameN=argN]'
diff --git a/scripts/qmp/qmp.py b/scripts/qmp/qmp.py
index 1d38e3e..779332f 100644
--- a/scripts/qmp/qmp.py
+++ b/scripts/qmp/qmp.py
@@ -92,7 +92,7 @@ class QEMUMonitorProtocol:
         self.__sock.setblocking(0)
         try:
             self.__json_read()
-        except socket.error, err:
+        except socket.error as err:
             if err[0] == errno.EAGAIN:
                 # No data available
                 pass
@@ -150,7 +150,7 @@ class QEMUMonitorProtocol:
         """
         try:
             self.__sock.sendall(json.dumps(qmp_cmd))
-        except socket.error, err:
+        except socket.error as err:
             if err[0] == errno.EPIPE:
                 return
             raise socket.error(err)
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [Qemu-devel] [PATCH 3/4] Revert "tracetool: use Python 2.4-compatible exception handling syntax"
  2015-12-17 10:06 [Qemu-devel] [PATCH 0/4] Use Python 2.6 "except E as ..." syntax Markus Armbruster
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 1/4] qapi: " Markus Armbruster
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 2/4] scripts/qmp: " Markus Armbruster
@ 2015-12-17 10:06 ` Markus Armbruster
  2015-12-17 17:28   ` Eric Blake
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 4/4] tests: Use Python 2.6 "except E as ..." syntax Markus Armbruster
  2015-12-18  5:10 ` [Qemu-devel] [PATCH 0/4] " Stefan Hajnoczi
  4 siblings, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2015-12-17 10:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, qemu-block, mdroth, stefanha

This reverts commit 662da3854e3f490223373b40afdcfcc339d14aa5.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 scripts/tracetool.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/tracetool.py b/scripts/tracetool.py
index 83bde7b..7b82959 100755
--- a/scripts/tracetool.py
+++ b/scripts/tracetool.py
@@ -71,7 +71,7 @@ def main(args):
 
     try:
         opts, args = getopt.getopt(args[1:], "", long_opts)
-    except getopt.GetoptError, err:
+    except getopt.GetoptError as err:
         error_opt(str(err))
 
     check_backends = False
@@ -132,7 +132,7 @@ def main(args):
     try:
         tracetool.generate(sys.stdin, arg_format, arg_backends,
                            binary=binary, probe_prefix=probe_prefix)
-    except tracetool.TracetoolError, e:
+    except tracetool.TracetoolError as e:
         error_opt(str(e))
 
 if __name__ == "__main__":
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [Qemu-devel] [PATCH 4/4] tests: Use Python 2.6 "except E as ..." syntax
  2015-12-17 10:06 [Qemu-devel] [PATCH 0/4] Use Python 2.6 "except E as ..." syntax Markus Armbruster
                   ` (2 preceding siblings ...)
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 3/4] Revert "tracetool: use Python 2.4-compatible exception handling syntax" Markus Armbruster
@ 2015-12-17 10:06 ` Markus Armbruster
  2015-12-17 17:29   ` Eric Blake
  2015-12-18  5:10 ` [Qemu-devel] [PATCH 0/4] " Stefan Hajnoczi
  4 siblings, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2015-12-17 10:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, qemu-block, mdroth, stefanha

PEP 8 calls for it, because it's forward compatibile with Python 3.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 tests/image-fuzzer/runner.py | 12 ++++++------
 tests/qemu-iotests/qed.py    |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/image-fuzzer/runner.py b/tests/image-fuzzer/runner.py
index be7e283..96a1c11 100755
--- a/tests/image-fuzzer/runner.py
+++ b/tests/image-fuzzer/runner.py
@@ -157,7 +157,7 @@ class TestEnv(object):
 
         try:
             os.makedirs(self.current_dir)
-        except OSError, e:
+        except OSError as e:
             print >>sys.stderr, \
                 "Error: The working directory '%s' cannot be used. Reason: %s"\
                 % (self.work_dir, e[1])
@@ -244,7 +244,7 @@ class TestEnv(object):
             temp_log = StringIO.StringIO()
             try:
                 retcode = run_app(temp_log, current_cmd)
-            except OSError, e:
+            except OSError as e:
                 multilog("%sError: Start of '%s' failed. Reason: %s\n\n"
                          % (test_summary, os.path.basename(current_cmd[0]),
                             e[1]),
@@ -356,7 +356,7 @@ if __name__ == '__main__':
         opts, args = getopt.gnu_getopt(sys.argv[1:], 'c:hs:kvd:',
                                        ['command=', 'help', 'seed=', 'config=',
                                         'keep_passed', 'verbose', 'duration='])
-    except getopt.error, e:
+    except getopt.error as e:
         print >>sys.stderr, \
             "Error: %s\n\nTry 'runner.py --help' for more information" % e
         sys.exit(1)
@@ -374,7 +374,7 @@ if __name__ == '__main__':
         elif opt in ('-c', '--command'):
             try:
                 command = json.loads(arg)
-            except (TypeError, ValueError, NameError), e:
+            except (TypeError, ValueError, NameError) as e:
                 print >>sys.stderr, \
                     "Error: JSON array of test commands cannot be loaded.\n" \
                     "Reason: %s" % e
@@ -390,7 +390,7 @@ if __name__ == '__main__':
         elif opt == '--config':
             try:
                 config = json.loads(arg)
-            except (TypeError, ValueError, NameError), e:
+            except (TypeError, ValueError, NameError) as e:
                 print >>sys.stderr, \
                     "Error: JSON array with the fuzzer configuration cannot" \
                     " be loaded\nReason: %s" % e
@@ -414,7 +414,7 @@ if __name__ == '__main__':
 
     try:
         image_generator = __import__(generator_name)
-    except ImportError, e:
+    except ImportError as e:
         print >>sys.stderr, \
             "Error: The image generator '%s' cannot be imported.\n" \
             "Reason: %s" % (generator_name, e)
diff --git a/tests/qemu-iotests/qed.py b/tests/qemu-iotests/qed.py
index 52ff845..748068d 100755
--- a/tests/qemu-iotests/qed.py
+++ b/tests/qemu-iotests/qed.py
@@ -227,7 +227,7 @@ def main():
     qed = QED(open(filename, 'r+b'))
     try:
         globals()[cmd](qed, *sys.argv[3:])
-    except TypeError, e:
+    except TypeError as e:
         sys.stderr.write(globals()[cmd].__doc__ + '\n')
         sys.exit(1)
 
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 1/4] qapi: Use Python 2.6 "except E as ..." syntax
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 1/4] qapi: " Markus Armbruster
@ 2015-12-17 17:26   ` Eric Blake
  2015-12-17 18:35     ` Markus Armbruster
  2015-12-17 20:00   ` Peter Maydell
  1 sibling, 1 reply; 15+ messages in thread
From: Eric Blake @ 2015-12-17 17:26 UTC (permalink / raw)
  To: Markus Armbruster, qemu-devel; +Cc: kwolf, stefanha, mdroth, qemu-block

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

On 12/17/2015 03:06 AM, Markus Armbruster wrote:
> PEP 8 calls for it, because it's forward compatibile with Python 3.

And possible as a cleanup only because we require 2.6 as a minimum since
fec21036 (your subject line hints at it, even if not stating it outright).

> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  scripts/qapi.py | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 2/4] scripts/qmp: Use Python 2.6 "except E as ..." syntax
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 2/4] scripts/qmp: " Markus Armbruster
@ 2015-12-17 17:27   ` Eric Blake
  0 siblings, 0 replies; 15+ messages in thread
From: Eric Blake @ 2015-12-17 17:27 UTC (permalink / raw)
  To: Markus Armbruster, qemu-devel; +Cc: kwolf, stefanha, mdroth, qemu-block

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

On 12/17/2015 03:06 AM, Markus Armbruster wrote:
> PEP 8 calls for it, because it's forward compatibile with Python 3.

Here, and also in 1/4,

s/compatibile/compatible/

> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  scripts/qmp/qemu-ga-client | 2 +-
>  scripts/qmp/qmp            | 4 ++--
>  scripts/qmp/qmp-shell      | 2 +-
>  scripts/qmp/qmp.py         | 4 ++--
>  4 files changed, 6 insertions(+), 6 deletions(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 3/4] Revert "tracetool: use Python 2.4-compatible exception handling syntax"
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 3/4] Revert "tracetool: use Python 2.4-compatible exception handling syntax" Markus Armbruster
@ 2015-12-17 17:28   ` Eric Blake
  2015-12-17 18:37     ` Markus Armbruster
  0 siblings, 1 reply; 15+ messages in thread
From: Eric Blake @ 2015-12-17 17:28 UTC (permalink / raw)
  To: Markus Armbruster, qemu-devel; +Cc: kwolf, stefanha, mdroth, qemu-block

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

On 12/17/2015 03:06 AM, Markus Armbruster wrote:
> This reverts commit 662da3854e3f490223373b40afdcfcc339d14aa5.
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  scripts/tracetool.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Might be nice to mention fec21036 as the reason why we can revert.

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 4/4] tests: Use Python 2.6 "except E as ..." syntax
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 4/4] tests: Use Python 2.6 "except E as ..." syntax Markus Armbruster
@ 2015-12-17 17:29   ` Eric Blake
  0 siblings, 0 replies; 15+ messages in thread
From: Eric Blake @ 2015-12-17 17:29 UTC (permalink / raw)
  To: Markus Armbruster, qemu-devel; +Cc: kwolf, stefanha, mdroth, qemu-block

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

On 12/17/2015 03:06 AM, Markus Armbruster wrote:
> PEP 8 calls for it, because it's forward compatibile with Python 3.

Another s/compatibile/compatible/

> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  tests/image-fuzzer/runner.py | 12 ++++++------
>  tests/qemu-iotests/qed.py    |  2 +-
>  2 files changed, 7 insertions(+), 7 deletions(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 1/4] qapi: Use Python 2.6 "except E as ..." syntax
  2015-12-17 17:26   ` Eric Blake
@ 2015-12-17 18:35     ` Markus Armbruster
  2015-12-17 19:58       ` Eric Blake
  0 siblings, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2015-12-17 18:35 UTC (permalink / raw)
  To: Eric Blake; +Cc: kwolf, qemu-block, qemu-devel, stefanha, mdroth

Eric Blake <eblake@redhat.com> writes:

> On 12/17/2015 03:06 AM, Markus Armbruster wrote:
>> PEP 8 calls for it, because it's forward compatibile with Python 3.
>
> And possible as a cleanup only because we require 2.6 as a minimum since
> fec21036 (your subject line hints at it, even if not stating it outright).

What about:

    Supported since Python 2.6, which we require (commit fec2103).

>> 
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>> ---
>>  scripts/qapi.py | 8 ++++----
>>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> Reviewed-by: Eric Blake <eblake@redhat.com>

Thanks!

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 3/4] Revert "tracetool: use Python 2.4-compatible exception handling syntax"
  2015-12-17 17:28   ` Eric Blake
@ 2015-12-17 18:37     ` Markus Armbruster
  2015-12-17 19:59       ` Eric Blake
  0 siblings, 1 reply; 15+ messages in thread
From: Markus Armbruster @ 2015-12-17 18:37 UTC (permalink / raw)
  To: Eric Blake; +Cc: kwolf, qemu-block, qemu-devel, stefanha, mdroth

Eric Blake <eblake@redhat.com> writes:

> On 12/17/2015 03:06 AM, Markus Armbruster wrote:
>> This reverts commit 662da3854e3f490223373b40afdcfcc339d14aa5.
>> 
>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>> ---
>>  scripts/tracetool.py | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Might be nice to mention fec21036 as the reason why we can revert.

What about:

    We require Python 2.6 now (commit fec2103).

> Reviewed-by: Eric Blake <eblake@redhat.com>

Thanks!

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 1/4] qapi: Use Python 2.6 "except E as ..." syntax
  2015-12-17 18:35     ` Markus Armbruster
@ 2015-12-17 19:58       ` Eric Blake
  0 siblings, 0 replies; 15+ messages in thread
From: Eric Blake @ 2015-12-17 19:58 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: kwolf, qemu-block, qemu-devel, stefanha, mdroth

[-- Attachment #1: Type: text/plain, Size: 669 bytes --]

On 12/17/2015 11:35 AM, Markus Armbruster wrote:
> Eric Blake <eblake@redhat.com> writes:
> 
>> On 12/17/2015 03:06 AM, Markus Armbruster wrote:
>>> PEP 8 calls for it, because it's forward compatibile with Python 3.
>>
>> And possible as a cleanup only because we require 2.6 as a minimum since
>> fec21036 (your subject line hints at it, even if not stating it outright).
> 
> What about:
> 
>     Supported since Python 2.6, which we require (commit fec2103).

Sounds good.  Looks like you can pretty much copy/paste that into 1, 2,
and 4.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 3/4] Revert "tracetool: use Python 2.4-compatible exception handling syntax"
  2015-12-17 18:37     ` Markus Armbruster
@ 2015-12-17 19:59       ` Eric Blake
  0 siblings, 0 replies; 15+ messages in thread
From: Eric Blake @ 2015-12-17 19:59 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: kwolf, qemu-block, qemu-devel, stefanha, mdroth

[-- Attachment #1: Type: text/plain, Size: 765 bytes --]

On 12/17/2015 11:37 AM, Markus Armbruster wrote:
> Eric Blake <eblake@redhat.com> writes:
> 
>> On 12/17/2015 03:06 AM, Markus Armbruster wrote:
>>> This reverts commit 662da3854e3f490223373b40afdcfcc339d14aa5.
>>>
>>> Signed-off-by: Markus Armbruster <armbru@redhat.com>
>>> ---
>>>  scripts/tracetool.py | 4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> Might be nice to mention fec21036 as the reason why we can revert.
> 
> What about:
> 
>     We require Python 2.6 now (commit fec2103).

Yes, that makes this commit a lot more meaningful.

> 
>> Reviewed-by: Eric Blake <eblake@redhat.com>
> 
> Thanks!
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 1/4] qapi: Use Python 2.6 "except E as ..." syntax
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 1/4] qapi: " Markus Armbruster
  2015-12-17 17:26   ` Eric Blake
@ 2015-12-17 20:00   ` Peter Maydell
  1 sibling, 0 replies; 15+ messages in thread
From: Peter Maydell @ 2015-12-17 20:00 UTC (permalink / raw)
  To: Markus Armbruster
  Cc: Kevin Wolf, Stefan Hajnoczi, QEMU Developers, Qemu-block, Michael Roth

On 17 December 2015 at 10:06, Markus Armbruster <armbru@redhat.com> wrote:
> PEP 8 calls for it, because it's forward compatibile with Python 3.

Typo nit: "compatible".

thanks
-- PMM

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Qemu-devel] [PATCH 0/4] Use Python 2.6 "except E as ..." syntax
  2015-12-17 10:06 [Qemu-devel] [PATCH 0/4] Use Python 2.6 "except E as ..." syntax Markus Armbruster
                   ` (3 preceding siblings ...)
  2015-12-17 10:06 ` [Qemu-devel] [PATCH 4/4] tests: Use Python 2.6 "except E as ..." syntax Markus Armbruster
@ 2015-12-18  5:10 ` Stefan Hajnoczi
  4 siblings, 0 replies; 15+ messages in thread
From: Stefan Hajnoczi @ 2015-12-18  5:10 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: kwolf, qemu-devel, qemu-block, mdroth

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

On Thu, Dec 17, 2015 at 11:06:27AM +0100, Markus Armbruster wrote:
> I can take this through my tree, but of course don't mind if a
> maintainer prefers to pick up "his" parts.
> 
> Markus Armbruster (4):
>   qapi: Use Python 2.6 "except E as ..." syntax
>   scripts/qmp: Use Python 2.6 "except E as ..." syntax
>   Revert "tracetool: use Python 2.4-compatible exception handling
>     syntax"
>   tests: Use Python 2.6 "except E as ..." syntax
> 
>  scripts/qapi.py              |  8 ++++----
>  scripts/qmp/qemu-ga-client   |  2 +-
>  scripts/qmp/qmp              |  4 ++--
>  scripts/qmp/qmp-shell        |  2 +-
>  scripts/qmp/qmp.py           |  4 ++--
>  scripts/tracetool.py         |  4 ++--
>  tests/image-fuzzer/runner.py | 12 ++++++------
>  tests/qemu-iotests/qed.py    |  2 +-
>  8 files changed, 19 insertions(+), 19 deletions(-)
> 
> -- 
> 2.4.3
> 

Acked-by: Stefan Hajnoczi <stefanha@redhat.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-12-18  6:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-17 10:06 [Qemu-devel] [PATCH 0/4] Use Python 2.6 "except E as ..." syntax Markus Armbruster
2015-12-17 10:06 ` [Qemu-devel] [PATCH 1/4] qapi: " Markus Armbruster
2015-12-17 17:26   ` Eric Blake
2015-12-17 18:35     ` Markus Armbruster
2015-12-17 19:58       ` Eric Blake
2015-12-17 20:00   ` Peter Maydell
2015-12-17 10:06 ` [Qemu-devel] [PATCH 2/4] scripts/qmp: " Markus Armbruster
2015-12-17 17:27   ` Eric Blake
2015-12-17 10:06 ` [Qemu-devel] [PATCH 3/4] Revert "tracetool: use Python 2.4-compatible exception handling syntax" Markus Armbruster
2015-12-17 17:28   ` Eric Blake
2015-12-17 18:37     ` Markus Armbruster
2015-12-17 19:59       ` Eric Blake
2015-12-17 10:06 ` [Qemu-devel] [PATCH 4/4] tests: Use Python 2.6 "except E as ..." syntax Markus Armbruster
2015-12-17 17:29   ` Eric Blake
2015-12-18  5:10 ` [Qemu-devel] [PATCH 0/4] " Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.