]> jfr.im git - yt-dlp.git/blobdiff - pyinst32.py
[mailru] removed escaped braces, use urljoin, added tests
[yt-dlp.git] / pyinst32.py
index cb193e33d9788aeaec0845eaf17df210b66cde10..ea20a69e5b142bcecc9569ba6d254273f0b7380b 100644 (file)
@@ -1,3 +1,4 @@
+from __future__ import unicode_literals
 from PyInstaller.utils.win32.versioninfo import (
     VarStruct, VarFileInfo, StringStruct, StringTable,
     StringFileInfo, FixedFileInfo, VSVersionInfo, SetVersion,
@@ -21,7 +22,9 @@
 if len(_OLD_VERSION) > 1:
     old_rev = _OLD_VERSION[1]
 
-ver = f'{datetime.today():%Y.%m.%d}'
+now = datetime.now()
+# ver = f'{datetime.today():%Y.%m.%d}'
+ver = now.strftime("%Y.%m.%d")
 rev = ''
 
 if old_ver == ver: