diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2016-03-13 21:30:55 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2016-03-13 21:30:55 +0000 |
commit | dc23f7c4b50ef33ad1e847b27fd4118f9fe578cf (patch) | |
tree | b5a3f79301cbffc6d28624dfdba5bff9b16f4392 /ybd/repos.py | |
parent | 6c565634faef98f75a5c20384ea0cee62559d815 (diff) | |
download | ybd-dc23f7c4b50ef33ad1e847b27fd4118f9fe578cf.tar.gz |
Fix pep8 issues16.11
Diffstat (limited to 'ybd/repos.py')
-rw-r--r-- | ybd/repos.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ybd/repos.py b/ybd/repos.py index ca47289..7abf668 100644 --- a/ybd/repos.py +++ b/ybd/repos.py @@ -51,8 +51,10 @@ def get_repo_name(repo): NOTE: this naming scheme is based on what lorry uses ''' + def transl(x): + return x if x in valid_chars else '_' + valid_chars = string.digits + string.ascii_letters + '%_' - transl = lambda x: x if x in valid_chars else '_' return ''.join([transl(x) for x in get_repo_url(repo)]) |