Add support for Python 3
[yardstick.git] / yardstick / cmd / __init__.py
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 from __future__ import print_function
10
11
12 def print_hbar(barlen):
13     '''print to stdout a horizontal bar'''
14     print(("+"), end=' ')
15     print(("-" * barlen), end=' ')
16     print("+")