Remove py26 format literals

Resolves #403
This commit is contained in:
Anthony Sottile 2016-09-15 08:17:18 -07:00
parent 26e60fa333
commit b81c9802ae
28 changed files with 58 additions and 58 deletions

View file

@ -57,7 +57,7 @@ CONFIG_JSON_SCHEMA = {
def try_regex(repo, hook, value, field_name):
if not is_regex_valid(value):
raise InvalidConfigError(
'Invalid {0} regex at {1}, {2}: {3}'.format(
'Invalid {} regex at {}, {}: {}'.format(
field_name, repo, hook, value,
)
)
@ -72,7 +72,7 @@ def validate_config_extra(config):
)
elif 'sha' not in repo:
raise InvalidConfigError(
'Missing "sha" field for repository {0}'.format(repo['repo'])
'Missing "sha" field for repository {}'.format(repo['repo'])
)
for hook in repo['hooks']:
try_regex(repo, hook['id'], hook.get('files', ''), 'files')