Fixing some flake8 gripes

This commit is contained in:
Dan Buch 2016-06-02 04:45:13 -04:00
parent 6dcb4fdfa4
commit c413767d25
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -129,7 +129,7 @@ def _pointer_type_literal(source):
def _slice_types(source): def _slice_types(source):
return _subfmt( return _subfmt(
'&cli\\.(?P<type>IntSlice|StringSlice){(?P<args>[^}]*)}', '&cli\\.(?P<type>IntSlice|StringSlice){(?P<args>[^}]*)}',
'cli.New{type}({args})', source, flags=re.DOTALL|re.UNICODE 'cli.New{type}({args})', source, flags=re.DOTALL | re.UNICODE
) )
@ -159,7 +159,7 @@ def _bool_t_flag(source):
return _subfmt( return _subfmt(
'cli\\.BoolTFlag{(?P<args>[^}]*)}', 'cli\\.BoolTFlag{(?P<args>[^}]*)}',
'cli.BoolFlag{{Value: true,{args}}}', 'cli.BoolFlag{{Value: true,{args}}}',
source, flags=re.DOTALL|re.UNICODE source, flags=re.DOTALL | re.UNICODE
) )
@ -278,9 +278,9 @@ def _context_bool_t(source):
@_migrator @_migrator
def _context_global_methods(source): def _context_global_methods(source):
return _subfmt( return _subfmt(
'\\.Global(?P<method>' \ '\\.Global(?P<method>'
'Bool|Duration|Float64|Generic|Int|IntSlice|String|StringSlice|' \ 'Bool|Duration|Float64|Generic|Int|IntSlice|String|StringSlice|'
'FlagNames|IsSet|Set' \ 'FlagNames|IsSet|Set'
')\\(', ')\\(',
'.{method}(', source '.{method}(', source
) )