Skip to content

Commit

Permalink
don't warn about metatools missing for < 2.7, since it has little eff…
Browse files Browse the repository at this point in the history
…ect anyways
  • Loading branch information
mikeboers committed Jun 14, 2015
1 parent 248f9fb commit 71f181c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.pyc
.DS_Store
*.egg-info
/build
3 changes: 2 additions & 1 deletion sitetools/monkeypatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
try:
from metatools.monkeypatch import patch
except ImportError:
warnings.warn('cannot monkeypatch without metatools')
if sys.version_info < (2, 7):
warnings.warn('cannot monkeypatch without metatools')
patch = None


Expand Down

0 comments on commit 71f181c

Please sign in to comment.