Skip to content

Commit

Permalink
oh, well
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed May 9, 2017
1 parent 6b4c4ba commit 62c5645
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions nikola/nikola.py
Expand Up @@ -58,6 +58,7 @@
from yapsy.PluginManager import PluginManager
from blinker import signal


from .post import Post # NOQA
from .state import Persistor
from . import DEBUG, utils, shortcodes
Expand Down
1 change: 1 addition & 0 deletions requirements-extras.txt
Expand Up @@ -13,3 +13,4 @@ ipykernel>=4.0.0
ghp-import2>=1.0.0
ws4py==0.4.2
watchdog==0.8.3
AppMetrics==0.5.0
4 changes: 3 additions & 1 deletion tests/test_shortcodes.py
Expand Up @@ -4,6 +4,8 @@
u"""Test shortcodes."""

from __future__ import unicode_literals
import itertools

import pytest
from nikola import shortcodes
from .base import FakeSite, BaseTestCase
Expand Down Expand Up @@ -88,7 +90,7 @@ def test_errors(self):
def test_extract_shortcodes(input, expected, monkeypatch):

i = iter('SC%d' % i for i in range(1, 100))
if sys.version_info[0] < "3":
if sys.version_info[0] < 3:
monkeypatch.setattr(shortcodes, '_new_sc_id', i.next)
else:
monkeypatch.setattr(shortcodes, '_new_sc_id', i.__next__)
Expand Down

0 comments on commit 62c5645

Please sign in to comment.