py/objstr: Fix error reporting for unexpected end of modulo format str.

This commit is contained in:
Damien George
2015-08-26 15:45:06 +01:00
parent 7ef75f9f75
commit b648e98ad0
2 changed files with 7 additions and 1 deletions

View File

@@ -111,3 +111,8 @@ try:
'%l' % 1
except ValueError:
print('ValueError')
try:
'a%' % 1
except ValueError:
print('ValueError')