Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 14, 2017
1 parent bbcefa1 commit 658f37a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion nikola/__main__.py
Expand Up @@ -49,7 +49,7 @@
from .plugin_categories import Command
from .utils import (LOGGER, STDERR_HANDLER, STRICT_HANDLER,
ColorfulStderrHandler, get_root_dir, req_missing,
sys_decode, sys_encode)
sys_decode)

try:
import readline # NOQA
Expand Down
1 change: 0 additions & 1 deletion tests/test_shortcodes.py
Expand Up @@ -168,7 +168,6 @@ def test_errors(self):
('AAA{{% foo %}} BBB {{% bar %}} quux {{% /bar %}} CCC',
(u'AAASC1 BBB SC2 CCC',
{u'SC1': u'{{% foo %}}', u'SC2': u'{{% bar %}} quux {{% /bar %}}'})), ])

def test_extract_shortcodes(input, expected, monkeypatch):
i = iter('SC%d' % i for i in range(1, 100))
monkeypatch.setattr(shortcodes, '_new_sc_id', i.__next__)
Expand Down

0 comments on commit 658f37a

Please sign in to comment.