(s, css=False)
| 12 | if len(sys.argv) == 2 and sys.argv[1] == '--test': |
| 13 | rv = 0 |
| 14 | def t(s, css=False): |
| 15 | global rv |
| 16 | m = _smap.match(s) |
| 17 | if m is None: |
| 18 | print('no match', s) |
| 19 | rv = 1 |
| 20 | return |
| 21 | hascss = m.group('iscss') is not None |
| 22 | if hascss != css: |
| 23 | print('bogus css', hascss, s) |
| 24 | rv = 1 |
| 25 | print('got b64', m.group('b64')) |
| 26 | def f(s): |
| 27 | global rv |
| 28 | if _smap.match(s) is not None: |