mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Use print() function in both Python 2 and Python 3
This commit is contained in:
@@ -20,7 +20,7 @@ import re
|
||||
import sys
|
||||
|
||||
if len(sys.argv) != 3:
|
||||
print >>sys.stderr, "Syntax: get_mozilla_ciphers.py <firefox-source-dir> <openssl-source-dir>"
|
||||
print("Syntax: get_mozilla_ciphers.py <firefox-source-dir> <openssl-source-dir>", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
ff_root = sys.argv[1]
|
||||
@@ -176,13 +176,13 @@ for fl in oSSLinclude:
|
||||
fp.close()
|
||||
|
||||
# Now generate the output.
|
||||
print """\
|
||||
print("""\
|
||||
/* This is an include file used to define the list of ciphers clients should
|
||||
* advertise. Before including it, you should define the CIPHER and XCIPHER
|
||||
* macros.
|
||||
*
|
||||
* This file was automatically generated by get_mozilla_ciphers.py.
|
||||
*/"""
|
||||
*/""")
|
||||
# Go in order by the order in CipherPrefs
|
||||
for firefox_macro in firefox_ciphers:
|
||||
|
||||
@@ -215,4 +215,4 @@ for firefox_macro in firefox_ciphers:
|
||||
#else
|
||||
XCIPHER(%(hex)s, %(macro)s)
|
||||
#endif""" % format
|
||||
print res
|
||||
print(res)
|
||||
|
||||
Reference in New Issue
Block a user