Skip to content

Commit

Permalink
Adding format numbers for Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Dec 31, 2018
1 parent 14718bf commit 3aa3747
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plumbum/cli/i18n/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ msgstr "Опция {0} уже была передана"
#: plumbum/cli/application.py:317
#, python-brace-format
msgid "Switch {0} already given ({1} is equivalent)"
msgstr "Опция {0} уже была передана (эквивалентна {})"
msgstr "Опция {0} уже была передана (эквивалентна {1})"

#: plumbum/cli/application.py:363
msgid ""
Expand Down
2 changes: 1 addition & 1 deletion plumbum/cli/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def display(self):


class ProgressIPy(ProgressBase): # pragma: no cover
HTMLBOX = '<div class="widget-hbox widget-progress"><div class="widget-label" style="display:block;">{}</div></div>'
HTMLBOX = '<div class="widget-hbox widget-progress"><div class="widget-label" style="display:block;">{0}</div></div>'

def __init__(self, *args, **kargs):

Expand Down
2 changes: 1 addition & 1 deletion tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def test_tee_modifier(self, capfd):
@skip_on_windows
def test_tee_race(self, capfd):
from plumbum.cmd import seq
EXPECT = "".join("{}\n".format(i) for i in range(1, 5001))
EXPECT = "".join("{0}\n".format(i) for i in range(1, 5001))
for _ in range(5):
result = seq['1', '5000'] & TEE
assert result[1] == EXPECT
Expand Down

0 comments on commit 3aa3747

Please sign in to comment.