Mercurial > public > mercurial-scm > hg
comparison mercurial/templater.py @ 3877:abaee83ce0a6
Replace demandload with new demandimport
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Dec 2006 13:27:09 -0600 |
parents | 734e337cb816 |
children | 6b4127c7d52a |
comparison
equal
deleted
inserted
replaced
3876:1e0b94cfba0e | 3877:abaee83ce0a6 |
---|---|
3 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> | 3 # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> |
4 # | 4 # |
5 # This software may be used and distributed according to the terms | 5 # This software may be used and distributed according to the terms |
6 # of the GNU General Public License, incorporated herein by reference. | 6 # of the GNU General Public License, incorporated herein by reference. |
7 | 7 |
8 from demandload import demandload | |
9 from i18n import gettext as _ | 8 from i18n import gettext as _ |
10 from node import * | 9 from node import * |
11 demandload(globals(), "cgi re sys os time urllib util textwrap") | 10 import cgi, re, sys, os, time, urllib, util, textwrap |
12 | 11 |
13 def parsestring(s, quoted=True): | 12 def parsestring(s, quoted=True): |
14 '''parse a string using simple c-like syntax. | 13 '''parse a string using simple c-like syntax. |
15 string must be in quotes if quoted is True.''' | 14 string must be in quotes if quoted is True.''' |
16 if quoted: | 15 if quoted: |