Move all scripts to Python3

This commit is contained in:
Martin Hořeňovský 2020-03-19 12:36:30 +01:00
parent d3c0b36487
commit 0d8eeec557
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
14 changed files with 17 additions and 13 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function
import releaseCommon import releaseCommon

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# Execute this script any time you import a new copy of Clara into the third_party area # Execute this script any time you import a new copy of Clara into the third_party area
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# extractFeaturesFromReleaseNotes.py # extractFeaturesFromReleaseNotes.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function
import os import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function
import releaseCommon import releaseCommon

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function
import releaseCommon import releaseCommon

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function
import releaseCommon import releaseCommon

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import print_function from __future__ import print_function

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# #
# updateDocumentToC.py # updateDocumentToC.py

View File

@ -3,10 +3,14 @@
import json import json
import os import os
import urllib.request import urllib.request
import urllib.parse
from scriptCommon import catchPath from scriptCommon import catchPath
def upload(options): def upload(options):
# request_blah = urllib.request.Request('https://
request = urllib.request.Request('https://melpon.org/wandbox/api/compile.json', method='POST') request = urllib.request.Request('https://melpon.org/wandbox/api/compile.json', method='POST')
json_bytes = json.dumps(options).encode('utf-8') json_bytes = json.dumps(options).encode('utf-8')
request.add_header('Content-Type', 'application/json; charset=utf-8') request.add_header('Content-Type', 'application/json; charset=utf-8')