Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prevent import warning on pyramid 1.2

  • Loading branch information...
commit a9d0fbdc6e82f1ff642e3c450ed7aa7567fec177 1 parent d9349bb
@mcdonc mcdonc authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 pyramid_zcml/scaffolds/__init__.py
View
4 pyramid_zcml/scaffolds/__init__.py
@@ -1,7 +1,7 @@
try: # pragma: no cover (pyramid 1.0.X)
- # "pyramid.paster_templates" doesn't exist past 1.0.X
- from pyramid.paster import PyramidTemplate
+ # "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
Please sign in to comment.
Something went wrong with that request. Please try again.