~mwhudson/loggerhead/yui

« back to all changes in this revision

Viewing changes to loggerhead/zptsupport.py

  • Committer: Martin Albisetti
  • Date: 2008-10-24 17:54:06 UTC
  • mfrom: (230.1.2 pep8)
  • Revision ID: martin.albisetti@canonical.com-20081024175406-73bpc73m7pshat9c
PEP8 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
 
29
29
_zpt_cache = {}
 
30
 
 
31
 
30
32
def zpt(tfile):
31
33
    tinstance = _zpt_cache.get(tfile)
32
34
    stat = os.stat(tfile)
74
76
        package = classname[0:divider]
75
77
        basename = classname[divider+1:]
76
78
    else:
77
 
        raise ValueError, "All templates must be in a package"
 
79
        raise ValueError("All templates must be in a package")
78
80
 
79
81
    tfile = pkg_resources.resource_filename(
80
82
        package, "%s.%s" % (basename, "pt"))