Skip to content

use strartswith/endswith instead of s[0] and s[-1] #8

@evgeni

Description

@evgeni
-            if len(s) > 2 and s[0] == '[' and s[-1] == ']':
+            if s.startswith('[') and s.endswith(']'):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions