Skip to content

Conversation

kcem
Copy link

@kcem kcem commented Jul 15, 2018

Hi,

I made this changes because Python2.7 is still main Python in RHEL and many corporations are using it in they enterprise projects.

Sometimes people get new things (like OpenApi 3.0) and use it with old stuff (like Python2.7)

@p1c2u
Copy link
Collaborator

p1c2u commented Jul 28, 2018

@kcem thank you for the contribution.


except ImportError:
from backports.functools_lru_cache import lru_cache
functools.lru_cache = lru_cache
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would like to avoid monkey patching.

@@ -1,12 +1,28 @@
"""OpenAPI core validation util module"""
from yarl import URL
try:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be replaced with from six.moves.urllib.parse import urlparse

@p1c2u p1c2u merged commit e3dfee5 into python-openapi:master Jul 28, 2018
@kcem
Copy link
Author

kcem commented Oct 9, 2018

Thanks for merge this.
Sorry I didn't have time to fix tests and finish this.

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.

2 participants