##// END OF EJS Templates
test-demandimport: match upper-case hexadecimal
Patrick Mezard -
r4802:3a4310e8 default
parent child Browse files
Show More
@@ -1,47 +1,47
1 1 #!/usr/bin/env python
2 2
3 3 from mercurial import demandimport
4 4 demandimport.enable()
5 5
6 6 import re
7 7
8 8 rsub = re.sub
9 9 def f(obj):
10 10 l = repr(obj)
11 l = rsub("0x[0-9a-f]+", "0x?", l)
11 l = rsub("0x[0-9a-fA-F]+", "0x?", l)
12 12 l = rsub("from '.*'", "from '?'", l)
13 13 return l
14 14
15 15 import os
16 16
17 17 print "os =", f(os)
18 18 print "os.system =", f(os.system)
19 19 print "os =", f(os)
20 20
21 21 import mercurial.version
22 22
23 23 print "mercurial.version =", f(mercurial.version)
24 24 print "mercurial.version.get_version =", f(mercurial.version.get_version)
25 25 print "mercurial.version =", f(mercurial.version)
26 26 print "mercurial =", f(mercurial)
27 27
28 28 from mercurial import util
29 29
30 30 print "util =", f(util)
31 31 print "util.system =", f(util.system)
32 32 print "util =", f(util)
33 33 print "util.system =", f(util.system)
34 34
35 35 import re as fred
36 36 print "fred =", f(fred)
37 37
38 38 import sys as re
39 39 print "re =", f(re)
40 40
41 41 print "fred =", f(fred)
42 42 print "fred.sub =", f(fred.sub)
43 43 print "fred =", f(fred)
44 44
45 45 print "re =", f(re)
46 46 print "re.stdout =", f(re.stdout)
47 47 print "re =", f(re)
General Comments 0
You need to be logged in to leave comments. Login now