Check that given string contains octal or hexadecimal escape sequences.
(symbols)
| 1249 | |
| 1250 | |
| 1251 | def hasNumericEscapeSequence(symbols): |
| 1252 | """Check that given string contains octal or hexadecimal escape sequences.""" |
| 1253 | if '\\' not in symbols: |
| 1254 | return False |
| 1255 | for c, cn in grouped(symbols, 2): |
| 1256 | if c == '\\' and cn in ('x' + string.octdigits): |
| 1257 | return True |
| 1258 | return False |
| 1259 | |
| 1260 | |
| 1261 | def isNoReturnScope(tok): |