From: Armin Ronacher Date: Thu, 18 Oct 2007 22:04:52 +0000 (+0200) Subject: switch away from svn, fix #283. X-Git-Tag: 2.0rc1~260 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a39502eb7173de930e20bf7e03f1bbe548844b18;p=jinja2.git switch away from svn, fix #283. --HG-- branch : trunk --- diff --git a/jinja/__init__.py b/jinja/__init__.py index 3c09362..726c7f0 100644 --- a/jinja/__init__.py +++ b/jinja/__init__.py @@ -43,14 +43,14 @@ the near future the best idea is to ship a Jinja 0.9 checkout together with the application. - The `Jinja trunk`_ is installable via `easy_install` with ``easy_install + The `Jinja tip`_ is installable via `easy_install` with ``easy_install Jinja==dev``. .. _sandboxed: http://en.wikipedia.org/wiki/Sandbox_(computer_security) .. _Django: http://www.djangoproject.com/ .. _jinja webpage: http://jinja.pocoo.org/ .. _documentation: http://jinja.pocoo.org/documentation/index.html - .. _Jinja trunk: http://trac.pocoo.org/repos/jinja/trunk#egg=Jinja-dev + .. _Jinja tip: http://dev.pocoo.org/hg/jinja-main/archive/tip.tar.gz#egg=Jinja-dev :copyright: 2007 by Armin Ronacher. diff --git a/jinja/loaders.py b/jinja/loaders.py index 4a5c7f8..35859a6 100644 --- a/jinja/loaders.py +++ b/jinja/loaders.py @@ -10,7 +10,10 @@ """ import codecs -import sha +try: + from hashlib import sha1 +except ImportError: + from sha import new as sha1 import time from os import path from threading import Lock @@ -38,8 +41,8 @@ def get_cachename(cachepath, name, salt=None): Return the filename for a cached file. """ return path.join(cachepath, 'jinja_%s.cache' % - sha.new('jinja(%s|%s)tmpl' % - (name, salt or '')).hexdigest()) + sha1('jinja(%s|%s)tmpl' % + (name, salt or '')).hexdigest()) def _loader_missing(*args, **kwargs): diff --git a/setup.cfg b/setup.cfg index 19dd821..2d74c58 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [egg_info] tag_build = dev -tag_svn_revision = true +tag_date = true [aliases] release = egg_info -RDb ''