Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatibility with Pathlib #193

Closed
wants to merge 2 commits into from

Conversation

browniebroke
Copy link
Contributor

@browniebroke browniebroke commented Aug 13, 2018

Fixes #192

  • Test cases to reproduce the problem(s)
  • Fix whitenoise code

@@ -11,6 +12,8 @@
from .string_utils import (decode_if_byte_string, decode_path_info,
ensure_leading_trailing_slash)

TEXT_TYPE = str if sys.version_info[0] >= 3 else unicode

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you want move them to string_utils.py as BINARY_TYPE ?

if sys.version_info[0] >= 3:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion!

@browniebroke
Copy link
Contributor Author

Closing in favour of #195

evansd added a commit that referenced this pull request Sep 11, 2018
Fixes #192 and replaces #193 and #195

Thanks @browniebroke for the original patches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants