Skip to content

Commit

Permalink
Merge pull request #75 from devopshq/develop
Browse files Browse the repository at this point in the history
Develop => master
  • Loading branch information
allburov committed May 21, 2018
2 parents 1100005 + 70b70ca commit e7124b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ before_deploy:
script:
- coverage run -m py.test tests
- coverage xml
- python-codacy-coverage -r coverage.xml
- if [[ ! $CODACY_PROJECT_TOKEN ]]; then echo "Variable CODACY_PROJECT_TOKEN not set. Step is skipped."; exit 0; else python-codacy-coverage -r coverage.xml; fi
deploy:
provider: pypi
user: devopshq
Expand Down
5 changes: 3 additions & 2 deletions crosspm/helpers/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ def do_print(left):
if not res_str:
cur_str = self._params.get(k, '')
if not res_str:
cur_str = '{}{} '.format(left, cur_str)
cur_format = '{}'
res_str = '{}{}'.format(left, cur_str)
continue
cur_format = ' {}'
if v > 0:
cur_format = '{:%s}' % (v if len(cur_str) <= v else v + len(left))
res_str += cur_format.format(cur_str)
Expand Down

0 comments on commit e7124b9

Please sign in to comment.