Changeset - e7b6a0ce123c
[Not reviewed]
default
0 6 0
Mads Kiilerich - 6 years ago 2019-12-27 01:43:46
mads@kiilerich.com
Grafted from: ac456490cdda
cleanup: minor formatting
5 files changed with 3 insertions and 7 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/utils.py
Show inline comments
 
@@ -376,7 +376,6 @@ def set_app_settings(config):
 
    :param config:
 
    """
 
    hgsettings = Setting.get_app_settings()
 

	
 
    for k, v in hgsettings.items():
 
        config[k] = v
 

	
kallithea/lib/utils2.py
Show inline comments
 
@@ -154,12 +154,10 @@ def safe_int(val, default=None):
 
    :param val:
 
    :param default:
 
    """
 

	
 
    try:
 
        val = int(val)
 
    except (ValueError, TypeError):
 
        val = default
 

	
 
    return val
 

	
 

	
kallithea/lib/vcs/backends/git/repository.py
Show inline comments
 
@@ -214,7 +214,7 @@ class GitRepository(BaseRepository):
 
        gitdata = resp.read()
 
        if 'service=git-upload-pack' not in gitdata:
 
            raise urllib2.URLError(
 
                "url [%s] does not look like an git" % (cleaned_uri))
 
                "url [%s] does not look like an git" % cleaned_uri)
 

	
 
        return True
 

	
kallithea/lib/vcs/subprocessio.py
Show inline comments
 
@@ -377,8 +377,7 @@ class SubprocessIOChunker(object):
 
                bg_out = iter([out])
 
                _p = None
 
            elif err:
 
                raise EnvironmentError(
 
                    "Subprocess exited due to an error:\n" + err)
 
                raise EnvironmentError("Subprocess exited due to an error: %s" % err)
 
            else:
 
                raise EnvironmentError(
 
                    "Subprocess exited with non 0 ret code: %s" % returncode)
kallithea/lib/vcs/utils/__init__.py
Show inline comments
 
@@ -25,7 +25,7 @@ def aslist(obj, sep=None, strip=True):
 
    :param sep:
 
    :param strip:
 
    """
 
    if isinstance(obj, (basestring)):
 
    if isinstance(obj, basestring):
 
        lst = obj.split(sep)
 
        if strip:
 
            lst = [v.strip() for v in lst]
0 comments (0 inline, 0 general)