Searched refs:sub (Results 1 - 25 of 360) sorted by relevance

1234567891011>>

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
H A Dtest_pkg.py98 ("t2 sub", None),
99 ("t2 sub __init__"+os.extsep+"py", ""),
100 ("t2 sub subsub", None),
101 ("t2 sub subsub __init__"+os.extsep+"py", "spam = 1"),
105 import t2.sub namespace
106 import t2.sub.subsub namespace
108 self.assertEqual(t2.sub.__name__, "t2.sub")
109 self.assertEqual(t2.sub.subsub.__name__, "t2.sub
120 from t2 import sub namespace
129 import t2.sub namespace
130 import t2.sub.subsub namespace
152 import t3.sub.subsub namespace
[all...]
H A Dtest_importhooks.py15 absimp = "import sub\n" namespace
16 relimp = "from . import sub\n" namespace
17 deeprelimp = "from .... import sub\n" namespace
41 "hooktestpackage.sub": (True, test_co),
42 "hooktestpackage.sub.subber": (True, test_co),
46 "hooktestpackage.sub.subber.subest": (True, test2_deeprel_co),
48 "sub": (False, test_co),
162 import hooktestpackage.sub namespace
163 import hooktestpackage.sub.subber namespace
168 self.assertEqual(hooktestpackage.sub
198 import hooktestpackage.sub.subber.subest as subest namespace
210 import sub namespace
[all...]
H A Dtest_re.py45 self.assertEqual(re.sub("(?i)b+", "x", "bbbb BBBB"), 'x x')
46 self.assertEqual(re.sub(r'\d+', self.bump_num, '08.2 -2 23x99y'),
48 self.assertEqual(re.sub(r'\d+', self.bump_num, '08.2 -2 23x99y', 3),
51 self.assertEqual(re.sub('.', lambda m: r"\n", 'x'), '\\n')
52 self.assertEqual(re.sub('.', r"\n", 'x'), '\n')
55 self.assertEqual(re.sub('(.)', s, 'x'), 'xx')
56 self.assertEqual(re.sub('(.)', re.escape(s), 'x'), s)
57 self.assertEqual(re.sub('(.)', lambda m: s, 'x'), s)
59 self.assertEqual(re.sub('(?P<a>x)', '\g<a>\g<a>', 'xx'), 'xxxx')
60 self.assertEqual(re.sub('(
[all...]
H A Dreperf.py7 timefunc(10, p.sub, "", s)
H A Dtest_property.py98 sub = SubClass()
99 self.assertRaises(PropertyGet, getattr, sub, "spam")
100 self.assertRaises(PropertySet, setattr, sub, "spam", None)
101 self.assertRaises(PropertyDel, delattr, sub, "spam")
106 sub = SubClass()
107 self.assertEqual(sub.__class__.spam.__doc__, "SubClass.getter")
117 sub = PropertyDocSub()
119 self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam")
H A Dtest_syntax.py525 source = re.sub('(?m)^ *:', '', """\
540 source = re.sub('(?m)^ *:', '', """\
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
H A Dtest_pkg.py98 ("t2 sub", None),
99 ("t2 sub __init__"+os.extsep+"py", ""),
100 ("t2 sub subsub", None),
101 ("t2 sub subsub __init__"+os.extsep+"py", "spam = 1"),
105 import t2.sub namespace
106 import t2.sub.subsub namespace
108 self.assertEqual(t2.sub.__name__, "t2.sub")
109 self.assertEqual(t2.sub.subsub.__name__, "t2.sub
120 from t2 import sub namespace
129 import t2.sub namespace
130 import t2.sub.subsub namespace
152 import t3.sub.subsub namespace
[all...]
H A Dtest_importhooks.py15 absimp = "import sub\n" namespace
16 relimp = "from . import sub\n" namespace
17 deeprelimp = "from .... import sub\n" namespace
41 "hooktestpackage.sub": (True, test_co),
42 "hooktestpackage.sub.subber": (True, test_co),
46 "hooktestpackage.sub.subber.subest": (True, test2_deeprel_co),
48 "sub": (False, test_co),
162 import hooktestpackage.sub namespace
163 import hooktestpackage.sub.subber namespace
168 self.assertEqual(hooktestpackage.sub
198 import hooktestpackage.sub.subber.subest as subest namespace
210 import sub namespace
[all...]
H A Dtest_re.py45 self.assertEqual(re.sub("(?i)b+", "x", "bbbb BBBB"), 'x x')
46 self.assertEqual(re.sub(r'\d+', self.bump_num, '08.2 -2 23x99y'),
48 self.assertEqual(re.sub(r'\d+', self.bump_num, '08.2 -2 23x99y', 3),
51 self.assertEqual(re.sub('.', lambda m: r"\n", 'x'), '\\n')
52 self.assertEqual(re.sub('.', r"\n", 'x'), '\n')
55 self.assertEqual(re.sub('(.)', s, 'x'), 'xx')
56 self.assertEqual(re.sub('(.)', re.escape(s), 'x'), s)
57 self.assertEqual(re.sub('(.)', lambda m: s, 'x'), s)
59 self.assertEqual(re.sub('(?P<a>x)', '\g<a>\g<a>', 'xx'), 'xxxx')
60 self.assertEqual(re.sub('(
[all...]
H A Dreperf.py7 timefunc(10, p.sub, "", s)
H A Dtest_property.py98 sub = SubClass()
99 self.assertRaises(PropertyGet, getattr, sub, "spam")
100 self.assertRaises(PropertySet, setattr, sub, "spam", None)
101 self.assertRaises(PropertyDel, delattr, sub, "spam")
106 sub = SubClass()
107 self.assertEqual(sub.__class__.spam.__doc__, "SubClass.getter")
117 sub = PropertyDocSub()
119 self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam")
H A Dtest_syntax.py525 source = re.sub('(?m)^ *:', '', """\
540 source = re.sub('(?m)^ *:', '', """\
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
H A DUserString.py65 def count(self, sub, start=0, end=sys.maxint):
66 return self.data.count(sub, start, end)
87 def find(self, sub, start=0, end=sys.maxint):
88 return self.data.find(sub, start, end)
89 def index(self, sub, start=0, end=sys.maxint):
90 return self.data.index(sub, start, end)
109 def rfind(self, sub, start=0, end=sys.maxint):
110 return self.data.rfind(sub, start, end)
111 def rindex(self, sub, start=0, end=sys.maxint):
112 return self.data.rindex(sub, star
[all...]
H A D_osx_support.py213 flags = re.sub('-arch\s+\w+\s', ' ', flags)
214 flags = re.sub('-isysroot [^ \t]*', ' ', flags)
248 flags = re.sub('-arch\s+ppc\w*\s', ' ', flags)
264 flags = re.sub('-arch\s+\w+\s', ' ', flags)
292 flags = re.sub(r'-isysroot\s+\S+(?:\s|$)', ' ', flags)
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/
H A DUserString.py65 def count(self, sub, start=0, end=sys.maxint):
66 return self.data.count(sub, start, end)
87 def find(self, sub, start=0, end=sys.maxint):
88 return self.data.find(sub, start, end)
89 def index(self, sub, start=0, end=sys.maxint):
90 return self.data.index(sub, start, end)
109 def rfind(self, sub, start=0, end=sys.maxint):
110 return self.data.rfind(sub, start, end)
111 def rindex(self, sub, start=0, end=sys.maxint):
112 return self.data.rindex(sub, star
[all...]
H A D_osx_support.py213 flags = re.sub('-arch\s+\w+\s', ' ', flags)
214 flags = re.sub('-isysroot [^ \t]*', ' ', flags)
248 flags = re.sub('-arch\s+ppc\w*\s', ' ', flags)
264 flags = re.sub('-arch\s+\w+\s', ' ', flags)
292 flags = re.sub(r'-isysroot\s+\S+(?:\s|$)', ' ', flags)
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/command/
H A Dinstall_egg_info.py60 return re.sub('[^A-Za-z0-9.]+', '-', name)
70 return re.sub('[^A-Za-z0-9.]+', '-', version)
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/command/
H A Dinstall_egg_info.py60 return re.sub('[^A-Za-z0-9.]+', '-', name)
70 return re.sub('[^A-Za-z0-9.]+', '-', version)
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/sysroot/usr/include/
H A Dcursesm.h207 NCursesWindow* sub; // the subwindow object member in class:NCursesMenu
271 sub(0),
286 sub(0),
305 sub(0),
326 sub(rhs.sub),
338 assert(sub!=NULL);
339 return *sub;
343 void setSubWindow(NCursesWindow& sub);
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/
H A Dcursesm.h207 NCursesWindow* sub; // the subwindow object member in class:NCursesMenu
271 sub(0),
286 sub(0),
305 sub(0),
326 sub(rhs.sub),
338 assert(sub!=NULL);
339 return *sub;
343 void setSubWindow(NCursesWindow& sub);
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/email/
H A Dgenerator.py127 sub = msg.get_content_subtype()
128 specific = UNDERSCORE.join((main, sub)).replace('-', '_')
180 payload = fcre.sub('>From ', payload)
217 preamble = fcre.sub('>From ', msg.preamble)
239 epilogue = fcre.sub('>From ', msg.epilogue)
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/email/
H A Dgenerator.py127 sub = msg.get_content_subtype()
128 specific = UNDERSCORE.join((main, sub)).replace('-', '_')
180 payload = fcre.sub('>From ', payload)
217 preamble = fcre.sub('>From ', msg.preamble)
239 epilogue = fcre.sub('>From ', msg.epilogue)
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/fixes/
H A Dfix_operator.py93 sub = (unicode(results["obj"]),)
94 invocation_str = unicode(method.invocation) % sub
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/
H A Dfix_operator.py93 sub = (unicode(results["obj"]),)
94 invocation_str = unicode(method.invocation) % sub
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
H A Dtest_array_in_pointer.py10 return re.sub(r"(..)", r"\1-", h)[:-1]

Completed in 4779 milliseconds

1234567891011>>