Searched refs:fn (Results 1 - 25 of 105) sorted by relevance

12345

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/
H A Dpytree_idempotency.py28 fn = "example.py"
29 tree = dr.parse_file(fn, debug=True)
30 if not diff(fn, tree):
42 fn = mod.__file__
43 if fn.endswith(".pyc"):
44 fn = fn[:-1]
45 if not fn.endswith(".py"):
47 print >>sys.stderr, "Parsing", fn
48 tree = dr.parse_file(fn, debu
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
H A Drrcs.py41 for fn in files:
43 func(x, copts, fn)
45 print "%s: %s" % (fn, msg)
47 def checkin(x, copts, fn):
48 f = open(fn)
51 new = not x.isvalid(fn)
52 if not new and same(x, copts, fn, data):
53 print "%s: unchanged since last checkin" % fn
55 print "Checking in", fn, "..."
57 messages = x.put(fn, dat
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
H A D__init__.py26 for fn in os.listdir(here):
27 if fn.startswith("test") and fn.endswith(".py"):
28 modname = "distutils.tests." + fn[:-3]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
H A D__init__.py11 for fn in os.listdir(here):
12 if fn.startswith("test") and fn.endswith(".py"):
13 modname = "unittest.test." + fn[:-3]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
H A Dserve.py15 fn = os.path.join(path, environ['PATH_INFO'][1:])
16 if '.' not in fn.split(os.path.sep)[-1]:
17 fn = os.path.join(fn, 'index.html')
18 type = mimetypes.guess_type(fn)[0]
20 if os.path.exists(fn):
22 return util.FileWrapper(open(fn))
H A Dsvneol.py36 def propfiles(root, fn):
37 default = os.path.join(root, ".svn", "props", fn+".svn-work")
45 return [os.path.join(root, ".svn", "prop-base", fn+".svn-base"),
46 os.path.join(root, ".svn", "props", fn+".svn-work")]
49 def proplist(root, fn):
50 "Return a list of property names for file fn in directory root"
52 for path in propfiles(root, fn):
87 for fn in files:
88 if possible_text_file(fn):
89 if 'svn:eol-style' not in proplist(root, fn)
[all...]
H A Dfinddiv.py78 fn = os.path.join(dir, name)
79 if os.path.normcase(fn).endswith(".py") or os.path.isdir(fn):
80 files.append(fn)
83 for fn in files:
84 x = process(fn, listnames)
H A Dobjgraph.py75 fn, name, type = s[r1a:r1b], s[r3a:r3b], s[r2a:r2b]
77 store(def2file, name, fn)
78 store(file2def, fn, name)
80 store(file2undef, fn, name)
81 store(undef2file, name, fn)
83 print fn + ':' + name + ': unknown type ' + type
119 for fn in callers:
120 if fn <> lastfn:
121 print '\t' + fn
122 lastfn = fn
[all...]
H A Dpatchcheck.py135 python_files = [fn for fn in file_paths if fn.endswith('.py')]
136 c_files = [fn for fn in file_paths if fn.endswith(('.c', '.h'))]
137 doc_files = [fn for fn in file_paths if fn.startswith('Doc')]
H A Dmailerdaemon.py166 files = filter(lambda fn, pat=pat: pat.match(fn) is not None, os.listdir('.'))
169 for fn in files:
171 fp = open(fn)
174 print '%s\t%-40s\t'%(fn, sender[1]),
181 os.rename(fn, ','+fn)
182 ## os.unlink(fn)
203 errorfirst[e] = '%s (%s)' % (fn, date)
206 errorlast[e] = '%s (%s)' % (fn, dat
[all...]
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/
H A Dtbb_cert.c43 .fn = NULL,
50 .fn = NULL,
57 .fn = NULL,
64 .fn = NULL,
71 .fn = NULL,
78 .fn = NULL,
85 .fn = NULL,
92 .fn = NULL,
99 .fn = NULL,
106 .fn
[all...]
H A Dkey.c87 if (key->fn) {
89 fp = fopen(key->fn, "r");
97 ERROR("Cannot read key from %s\n", key->fn);
100 ERROR("Cannot open file %s\n", key->fn);
116 if (key->fn) {
117 fp = fopen(key->fn, "w");
124 ERROR("Cannot create file %s\n", key->fn);
H A Dmain.c55 * the 'fn' function to 'v' and exits if the value is NULL.
57 #define CHECK_NULL(v, fn) \
59 v = fn; \
232 if (keys[ROT_KEY].fn == NULL) {
237 if (keys[TRUSTED_WORLD_KEY].fn == NULL) {
242 if (keys[NON_TRUSTED_WORLD_KEY].fn == NULL) {
247 if (keys[BL31_KEY].fn == NULL) {
252 if (keys[BL33_KEY].fn == NULL) {
257 if (bl30_present && (keys[BL30_KEY].fn == NULL)) {
262 if (bl32_present && (keys[BL32_KEY].fn
[all...]
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/include/
H A Dkey.h49 char *fn; /* Filename to load/store the key */ member in struct:key_s
H A Dcert.h54 const char *fn; /* Filename to save the certificate */ member in struct:cert_s
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/
H A Dio.h60 #define PCIADDR(bus,dev,fn,reg) ( \
64 ((fn) << 12) + \
110 uint32_t fn,
117 uint32_t fn,
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/
H A Dmd_var.h43 #define FDESC_FUNC(fn) (((struct ia64_fdesc *) fn)->func)
44 #define FDESC_GP(fn) (((struct ia64_fdesc *) fn)->gp)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest___all__.py51 for fn in sorted(os.listdir(basedir)):
52 path = os.path.join(basedir, fn)
56 yield pkg_init, modpath + fn
57 for p, m in self.walk_modules(path, modpath + fn + "."):
60 if not fn.endswith('.py') or fn == '__init__.py':
62 yield path, modpath + fn[:-3]
H A Dtest_shelve.py11 fn = "shelftemp" + os.extsep + "db" variable in class:TestCase
30 s = shelve.open(self.fn, protocol=0)
35 for f in glob.glob(self.fn+"*"):
40 s = shelve.open(self.fn, protocol=1)
45 for f in glob.glob(self.fn+"*"):
50 s = shelve.open(self.fn, protocol=2)
55 for f in glob.glob(self.fn+"*"):
108 fn = "shelftemp.db" variable in class:TestShelveBase
121 x= shelve.open(self.fn+str(self.counter), **self._args)
129 for f in glob.glob(self.fn
[all...]
H A Dtest_socketserver.py77 for fn in self.test_files:
79 os.remove(fn)
93 fn = tempfile.mktemp(prefix='unix_socket.', dir=dir)
98 if fn[1] == ':':
99 fn = fn[2:]
100 if fn[0] in (os.sep, os.altsep):
101 fn = fn[1:]
103 fn
[all...]
H A Dtest_fnmatch.py15 def check_match(self, filename, pattern, should_match=1, fn=fnmatch):
17 self.assertTrue(fn(filename, pattern),
21 self.assertTrue(not fn(filename, pattern),
H A Dtest_ntpath.py8 def tester(fn, wantResult):
9 fn = fn.replace("\\", "\\\\")
10 gotResult = eval(fn)
13 %(str(fn), str(wantResult), str(gotResult))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
H A D_functoolsmodule.c94 PyObject *fn; member in struct:__anon2729
127 pto->fn = func;
154 Py_XDECREF(pto->fn);
167 assert (PyCallable_Check(pto->fn));
201 ret = PyObject_Call(pto->fn, argappl, kwappl);
210 Py_VISIT(pto->fn);
223 {"func", T_OBJECT, OFF(fn), READONLY,
283 return Py_BuildValue("O(O)(OOOO)", Py_TYPE(pto), pto->fn, pto->fn,
291 PyObject *fn, *fnarg local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
H A D_functoolsmodule.c94 PyObject *fn; member in struct:__anon3039
127 pto->fn = func;
158 Py_XDECREF(pto->fn);
171 assert (PyCallable_Check(pto->fn));
205 ret = PyObject_Call(pto->fn, argappl, kwappl);
214 Py_VISIT(pto->fn);
227 {"func", T_OBJECT, OFF(fn), READONLY,
287 return Py_BuildValue("O(O)(OOOO)", Py_TYPE(pto), pto->fn, pto->fn,
295 PyObject *fn, *fnarg local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
H A Dpkgutil.py204 for fn in filenames:
205 modname = inspect.getmodulename(fn)
209 path = os.path.join(self.path, fn)
212 if not modname and os.path.isdir(path) and '.' not in fn:
213 modname = fn
219 for fn in dircontents:
220 subname = inspect.getmodulename(fn)
338 for fn in dirlist:
339 if not fn.startswith(_prefix):
342 fn
[all...]

Completed in 444 milliseconds

12345