ypcrts / fqdn

RFC-compliant FQDN validation and manipulation for Python.
http://fqdn.readthedocs.io/
Mozilla Public License 2.0
30 stars 11 forks source link

Remove cached_property dependency for python 3.8 #13

Closed wakemaster39 closed 4 years ago

wakemaster39 commented 4 years ago

Currently not using any of the added stuff from cached_property inside of the class. Use the builtin from functools if python 3.8 or newer.

Took first step in punycode by ensuring FQDN is lowered on consturction.

wakemaster39 commented 4 years ago

I also made the __str__ based on absolute and not the _fqdn property. This ensures alignment with equality and hashes so you don't call str(SomeFQDN) and get two different values.