File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3838 'python' : (
3939 (r'[\%]{2}' , '%' ),
4040 (r'\%([.\d]+)?[bcdeEfFgGnosxX]' , r'' ),
41- (r'\%(\(( [^)]*) \))([.\d]+)?[bcdeEfFgGnosxX]' , r'\g<2> ' ),
41+ (r'\%(\([^)]*\))([.\d]+)?[bcdeEfFgGnosxX]' , r'' ),
4242 (r'\{([^\:\}]*)?(:[^\}]*)?\}' , r'' ),
4343 ),
4444})
Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ def test_replace_formatters_python(self):
127127 self .assertEqual (replace_formatters ('%b' , 'python' ), '' )
128128 self .assertEqual (replace_formatters ('%%' , 'python' ), '%' )
129129 self .assertEqual (replace_formatters ('%.02f' , 'python' ), '' )
130- self .assertEqual (replace_formatters ('%(sth)s' , 'python' ), 'sth ' )
131- self .assertEqual (replace_formatters ('%(sth)02f' , 'python' ), 'sth ' )
130+ self .assertEqual (replace_formatters ('%(sth)s' , 'python' ), '' )
131+ self .assertEqual (replace_formatters ('%(sth)02f' , 'python' ), '' )
132132 # str.format()
133133 conditions = (
134134 ('First, thou shalt count to {0}' ,
You can’t perform that action at this time.
0 commit comments