A byte string like b'{
with no }
breaks python-indent
, resulting in the following indentation:
def parse_license(license):
if license.startswith(b'{'):
print('json license')
else:
print('regular license')
This does not happen with a regular string ('{
') or a raw string (r'{'
).