diff options
author | yan11.meng <yan11.meng@samsung.com> | 2019-12-11 15:10:32 +0800 |
---|---|---|
committer | yan11.meng <yan11.meng@samsung.com> | 2019-12-11 16:56:39 +0800 |
commit | 7310eaedb5dc0e0542bafd6a08904b22decbe8e2 (patch) | |
tree | 8a7a30272594a381aad8712b6bad42e40af50578 | |
parent | 0b6cbed80000238d9bb9d670d8522f6efeca8b0b (diff) | |
download | repa-accepted/tizen/devbase/tools/20200109.052739.tar.gz repa-accepted/tizen/devbase/tools/20200109.052739.tar.bz2 repa-accepted/tizen/devbase/tools/20200109.052739.zip |
Fix pylint error for repasubmit/trunk/20200617.133020submit/trunk/20200615.140020submit/trunk/20200612.191020submit/trunk/20200612.185510submit/trunk/20200612.182210submit/trunk/20200612.180310submit/trunk/20200612.131210submit/trunk/20200519.184310submit/trunk/20200519.164610submit/trunk/20200519.161030submit/trunk/20200513.162810submit/trunk/20200423.122334submit/trunk/20200423.111223submit/trunk/20200423.102810submit/trunk/20200422.165210submit/trunk/20200422.142510submit/trunk/20200422.115210submit/trunk/20200414.191000submit/trunk/20200414.141500submit/trunk/20200413.151000submit/trunk/20200413.150000submit/trunk/20200413.132320submit/trunk/20200410.160020submit/trunk/20200410.143020submit/trunk/20200409.202020submit/trunk/20200409.200220submit/trunk/20200409.194520submit/trunk/20200219.120523submit/trunk/20200214.114520submit/trunk/20200213.191021submit/trunk/20200213.184721submit/trunk/20200115.110101submit/trunk/20200114.110000submit/trunk/20200114.100000submit/trunk/20200110.111659submit/trunk/20200109.154402submit/trunk/20200109.151502submit/trunk/20200109.124502submit/trunk/20200109.112402submit/trunk/20200109.105802submit/trunk/20200108.172702submit/trunk/20200108.172202submit/trunk/20200108.135302submit/trunk/20200107.170902submit/trunk/20200107.162402submit/trunk/20200107.112802submit/trunk/20200105.091733submit/trunk/20200104.173833submit/trunk/20200104.164833submit/trunk/20200104.154833submit/trunk/20200104.134833submit/trunk/20200104.111333accepted/tizen/devbase/tools/20200618.010604accepted/tizen/devbase/tools/20200520.012823accepted/tizen/devbase/tools/20200514.023628accepted/tizen/devbase/tools/20200423.100605accepted/tizen/devbase/tools/20200415.093518accepted/tizen/devbase/tools/20200219.094522accepted/tizen/devbase/tools/20200214.062304accepted/tizen/devbase/tools/20200115.231515accepted/tizen/devbase/tools/20200114.115756accepted/tizen/devbase/tools/20200114.020219accepted/tizen/devbase/tools/20200110.011754accepted/tizen/devbase/tools/20200109.052739accepted/tizen/devbase/tools/20200106.014412accepted/tizen/devbase/tools/20200106.014357accepted/tizen/devbase/tools/20200106.014345accepted/tizen/devbase/tools/20200106.014254accepted/tizen/devbase/tools/20200104.053734
Change-Id: I0b8480263728404509634146d51ac4bf4fd4a9ca
Signed-off-by: yan11.meng <yan11.meng@samsung.com>
-rw-r--r-- | repa/common.py | 2 | ||||
-rw-r--r-- | repa/obs.py | 2 | ||||
-rw-r--r-- | repa/update.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/repa/common.py b/repa/common.py index c28fc98..f9797bc 100644 --- a/repa/common.py +++ b/repa/common.py @@ -181,7 +181,7 @@ def retry(exceptions, tries=10, sleep=1): try: return func(*args, **kwargs) except CancelRetryError as err: - raise err.typ, err.val, err.backtrace + raise err.typ (err.val, err.backtrace) except exceptions as err: if attempt >= tries: raise diff --git a/repa/obs.py b/repa/obs.py index 2796e84..1ac67e5 100644 --- a/repa/obs.py +++ b/repa/obs.py @@ -258,7 +258,7 @@ class OBS(OSC): def get_file_list(self, prj, pkg): """Get file list from OBS.""" url = core.makeurl(self.apiurl, - ['source', prj, pkg]); + ['source', prj, pkg]) files=[] try: xml = self.core_http(core.http_GET, url).read() diff --git a/repa/update.py b/repa/update.py index fbf6f78..d9e3685 100644 --- a/repa/update.py +++ b/repa/update.py @@ -33,7 +33,7 @@ import sys import json from xml.etree import cElementTree as ET -from repa.common import get_project_by_name +from repa.common import get_project_by_name, RepaException from repa.obs import OBS from repa.main import sub_main @@ -70,7 +70,7 @@ def update(obs, name, target, ref_target_prj): else: raise RepaException("update is not supported. " "ref_obs_target_prj values: %s" % \ - (ref_obs_target_prj)) + (ref_target_prj)) if not obs.exists(ref_target_prj): raise RepaException("update is not supported. " |