Skip to content

Python indentation broken after b'{' #140

Description

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'{').

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions