def _GetColFormatString(width, align_right):
  if align_right:
    sign = ""
  else:
    sign = "-"

  return "%%%s%ss" % (sign, width)
Regression tests for #10406
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/_GetColFormatString--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/model_inheritance_regress/tests.py/ModelInheritanceTest.test_use_explicit_o2o_to_parent_as_pk