Skip to content

get_user_groups Returned is not an array of strings #63

@wuzhihui1123

Description

@wuzhihui1123

When I update flask-simpleldap to the latest version, My app doesn't work correctly, Finally found that the function get_user_groups() returns an array of strings in the old version, the new version returns a byte array. Why is this incompatibility, I think string arrays are more reasonable.

== my env:

python: 3.5.1
flask version:  1.1.1
flask-simpleldap version : 1.4.0

== I saw that you removed these codes.

  if sys.version_info[0] > 2:
    result = [r.decode('utf-8') for r in result]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions