Skip to content

Commit

Permalink
Prevent import warning when installed on Pyramid 1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Dec 15, 2011
1 parent fa3649c commit 29fe627
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
@@ -1,3 +1,8 @@
Next release
============

- Prevent import warning when installed on Pyramid 1.2.

0.2 (2011-12-14)
================

Expand Down
8 changes: 3 additions & 5 deletions pyramid_jqm/scaffolds/__init__.py
@@ -1,9 +1,7 @@
# package

try: # pragma: no cover (pyramid 1.0.X)
# "pyramid.paster_templates" doesn't exist past 1.0.X
from pyramid.paster_templates import PyramidTemplate
from pyramid.paster_templates import paste_script_template_renderer
# "pyramid.paster.paste_script_template_renderer" doesn't exist past 1.0.X
from pyramid.paster import paste_script_template_renderer
from pyramid.paster import PyramidTemplate
except ImportError: # pragma: no cover
try: # pragma: no cover (pyramid 1.1.X, 1.2.X)
# trying to import "paste_script_template_renderer" fails on 1.3.X
Expand Down

0 comments on commit 29fe627

Please sign in to comment.