diff options
| author | Taylor Jakobson <tjakobs@us.ibm.com> | 2018-02-01 14:44:32 -0600 |
|---|---|---|
| committer | Taylor Jakobson <tjakobs@us.ibm.com> | 2018-02-02 08:46:54 -0600 |
| commit | ed5ff9b9505e50b545e86dfbdd32077f0ddda0cb (patch) | |
| tree | 49e19ea0250cedad5be8775156b783e16ee78626 /targetcli | |
| parent | 0c329d0bf6f31543a762cd60c80d8eb139ed9a61 (diff) | |
| download | targetcli-ed5ff9b9505e50b545e86dfbdd32077f0ddda0cb.tar.gz | |
Use signed char instead of char
Python3 does not have the "character" type, use signed char instead.
Diffstat (limited to 'targetcli')
| -rw-r--r-- | targetcli/ui_backstore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/targetcli/ui_backstore.py b/targetcli/ui_backstore.py index 3a2db10..5af448f 100644 --- a/targetcli/ui_backstore.py +++ b/targetcli/ui_backstore.py @@ -536,7 +536,7 @@ class UIBlockBackstore(UIBackstore): except (OSError, IOError): raise ExecutionError("Could not open %s" % dev) # ioctl returns an int. Provision a buffer for it - buf = array.array('c', [chr(0)] * 4) + buf = array.array('b', [0] * 4) try: fcntl.ioctl(f, BLKROGET, buf) except (OSError, IOError): |
