From 0863ff5adf89dfd5648ba307cc654976db2e3533 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Mon, 3 Nov 2014 16:15:35 +0800 Subject: [PATCH] fix coding style for vcs.py --- nvchecker/source/vcs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nvchecker/source/vcs.py b/nvchecker/source/vcs.py index e968237..75e5e4a 100644 --- a/nvchecker/source/vcs.py +++ b/nvchecker/source/vcs.py @@ -8,22 +8,22 @@ import os.path as _path logger = logging.getLogger(__name__) _self_path = _path.dirname(_path.abspath(__file__)) -_cmd_prefix=['/bin/bash', _path.join(_self_path, 'vcs.sh')] +_cmd_prefix = ['/bin/bash', _path.join(_self_path, 'vcs.sh')] PROT_VER = 1 def _parse_oldver(oldver): if oldver is None: - return (PROT_VER, 0, '') + return PROT_VER, 0, '' try: prot_ver, count, ver = oldver.split('.', maxsplit=2) prot_ver = int(prot_ver) count = int(count) except: - return (PROT_VER, 0, '') + return PROT_VER, 0, '' if prot_ver != PROT_VER: - return (PROT_VER, 0, ver) - return (PROT_VER, count, ver) + return PROT_VER, 0, ver + return PROT_VER, count, ver def get_version(name, conf, callback): vcs = conf['vcs']