eferdman / dehydrated-hook-ddns-tsig

dnspython hook for dehydrated shell script
Other
10 stars 15 forks source link

consider dropping Py2 in favour of Py3 #21

Open umlaeute opened 6 years ago

umlaeute commented 6 years ago

dehydrated-hook-ddns-tsig is still a Python2 script. Now Py2 is nearing it's EOL (scheduled in 2020, which is pretty close).

Probably the project should just officially abandon Py2 support, and embrace Py3 by changing the hashbang

Note, that I haven't recently tested whether there are any issues with Py3.

umlaeute commented 4 years ago

it seems to be safe to just change the shebang:

--- dehydrated-hook-ddns-tsig.orig/dehydrated-hook-ddns-tsig.py
+++ dehydrated-hook-ddns-tsig/dehydrated-hook-ddns-tsig.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #
 # dehydrated-hook-ddns-tsig - dns-01 Challenge Hook Script for dehydrated