diff options
author | biao716.wang <biao716.wang@samsung.com> | 2019-11-14 16:17:06 +0800 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2019-11-14 16:17:06 +0800 |
commit | 4696eb2a81eeb2af32cbdda8b0e612b3726ac1f7 (patch) | |
tree | 345a223e0387d52050c26f6d7bb52095953b31a7 /gbp/tmpfile.py | |
parent | f0a26b109d267557c949c5fe1012936a3f4d85a7 (diff) | |
download | git-buildpackage-4696eb2a81eeb2af32cbdda8b0e612b3726ac1f7.tar.gz git-buildpackage-4696eb2a81eeb2af32cbdda8b0e612b3726ac1f7.tar.bz2 git-buildpackage-4696eb2a81eeb2af32cbdda8b0e612b3726ac1f7.zip |
fix pylint error for git-buildpackage
Change-Id: Ia319032dcd3f55600bb79b5c85372a7a77122174
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'gbp/tmpfile.py')
-rw-r--r-- | gbp/tmpfile.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gbp/tmpfile.py b/gbp/tmpfile.py index e1ad3084..9435a810 100644 --- a/gbp/tmpfile.py +++ b/gbp/tmpfile.py @@ -26,13 +26,13 @@ def mkdtemp(dir, **kwargs): try: if not os.path.exists(dir): os.makedirs(dir) - except OSError as (dummy_e, msg): - raise GbpError, "Unable to create dir %s (%s)" % (dir, msg) + except OSError as msg: + raise GbpError("Unable to create dir %s (%s)" % (dir, msg)) try: return os.path.abspath(tempfile.mkdtemp(dir=dir, **kwargs)) - except OSError as (dummy_e, msg): - raise GbpError, "Unable to create tmpdir under %s (%s)" % (dir, msg) + except OSError as msg: + raise GbpError("Unable to create tmpdir under %s (%s)" % (dir, msg)) # vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: |