mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use the print function
In Python 3, `print` is no longer a statement. Call it as a function everywhere, and include the future import to remove the statement in Python 2 code as well. Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
fb7943dab4
commit
8de13bd7dd
@@ -417,6 +417,7 @@ It is possible to "copy" an object by passing an object of the same type
|
||||
to the constructor. The result may share underlying structure.
|
||||
|
||||
'''
|
||||
from __future__ import print_function
|
||||
|
||||
import sys
|
||||
|
||||
@@ -1121,8 +1122,8 @@ class DN(object):
|
||||
try:
|
||||
return dn2str(self.rdns)
|
||||
except Exception, e:
|
||||
print len(self.rdns)
|
||||
print self.rdns
|
||||
print(len(self.rdns))
|
||||
print(self.rdns)
|
||||
raise
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
Reference in New Issue
Block a user