Skip to content

empty_string() needs a rewrite #6221

@cclauss

Description

@cclauss

Describe the bug

https://github.com/fossasia/open-event-server/blob/development/app/api/helpers/utilities.py#L28-L34 is exceedingly convoluted, does __type(x)__ compares contrary to PEP8, and contains several logic errors. A code review of this function would be a worthwhile effort. Some __doctests__ would really be helpful here.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Stacktrace

Additional details (please complete the following information):

  • OS: [e.g. MacOS, Ubuntu, CentOS]
  • Python Version [e.g. 3.5, 3.6]
  • HEAD Commit hash [e.g. 4629c62]

Additional context

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions