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:
@@ -101,7 +101,7 @@ def parse_cipher(ciph):
|
||||
fwsec, = m.groups()
|
||||
return Ciphersuite(ciph, fwsec, "CHACHA20", "256", "POLY1305", "n/a")
|
||||
|
||||
print "/* Couldn't parse %s ! */"%ciph
|
||||
print("/* Couldn't parse %s ! */"%ciph)
|
||||
return None
|
||||
|
||||
|
||||
@@ -125,12 +125,12 @@ for c in ALL_CIPHERS:
|
||||
colon = ' ":"'
|
||||
|
||||
if c.name in MANDATORY:
|
||||
print "%s/* Required */"%indent
|
||||
print '%s%s%s'%(indent,c.name,colon)
|
||||
print("%s/* Required */"%indent)
|
||||
print('%s%s%s'%(indent,c.name,colon))
|
||||
else:
|
||||
print "#ifdef %s"%c.name
|
||||
print '%s%s%s'%(indent,c.name,colon)
|
||||
print "#endif"
|
||||
print("#ifdef %s"%c.name)
|
||||
print('%s%s%s'%(indent,c.name,colon))
|
||||
print("#endif")
|
||||
|
||||
print '%s;'%indent
|
||||
print('%s;'%indent)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user