1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-17 04:23:50 +03:00

samba python libs: convert print func to be py2/py3 compatible

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Noel Power
2018-03-09 13:53:45 +00:00
committed by Andrew Bartlett
parent aacbe1b65c
commit 9c251740b4
11 changed files with 126 additions and 99 deletions

View File

@@ -18,6 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
import os
import itertools
@@ -339,8 +340,8 @@ def verify_and_dot(basename, edges, vertices=None, label=None,
def list_verify_tests():
for k, v in sorted(globals().items()):
if k.startswith('verify_graph_'):
print k.replace('verify_graph_', '')
print(k.replace('verify_graph_', ''))
if v.__doc__:
print ' %s%s%s' % (GREY, v.__doc__.rstrip(), C_NORMAL)
print(' %s%s%s' % (GREY, v.__doc__.rstrip(), C_NORMAL))
else:
print
print()