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