/dports/databases/py-gdbm/Python-3.8.12/Lib/test/ |
H A D | test_tarfile.py | 2573 fname = 'numeric-owner-testfile' 2577 filename_1 = fname 2579 filename_2 = os.path.join(dirname, fname)
|
H A D | test_urllib2.py | 53 fname = os.path.abspath(urllib.request.__file__).replace(os.sep, '/') 56 file_url = "file:///%s" % fname 58 file_url = "file://%s" % fname
|
H A D | test_venv.py | 434 for dirname, fname in (posix_location,): 437 fpath = os.path.join(dirpath, fname)
|
H A D | test_zipfile.py | 365 fname = 'file.name' 368 zipfp.write(TESTFN, fname) 379 r = repr(zipfp.getinfo(fname)) 380 self.assertIn('filename=%r' % fname, r) 386 with zipfp.open(fname) as zipopen: 388 self.assertIn('name=%r' % fname, r) 1577 fname = findfile('zip_cp437_header.zip') 1578 with zipfile.ZipFile(fname) as zipfp:
|
H A D | test_zipfile64.py | 86 for fname in TESTFN, TESTFN2: 87 if os.path.exists(fname): 88 os.remove(fname)
|
/dports/databases/py-gdbm/Python-3.8.12/Lib/test/test_warnings/ |
H A D | __init__.py | 958 expected = expected.format(fname=support.TESTFN).strip() 972 expected = expected.format(fname=support.TESTFN).strip()
|
/dports/databases/py-gdbm/Python-3.8.12/Lib/ |
H A D | zipfile.py | 1999 self.write(fname, arcname) 2045 self.write(fname, arcname) 2075 arcname = fname = file_pyc 2080 fname = pycache_opt0 2086 fname = pycache_opt1 2092 fname = pycache_opt2 2098 fname = pycache_opt0 2109 fname = pycache_opt0 2114 fname = pycache_opt1 2116 fname = pycache_opt2 [all …]
|
/dports/databases/py-gdbm/Python-3.8.12/Mac/BuildScript/ |
H A D | build-installer.py | 793 def downloadURL(url, fname): argument 798 fpOut = open(fname, 'wb') 808 os.unlink(fname) 812 def verifyThirdPartyFile(url, checksum, fname): argument 817 name = os.path.basename(fname) 818 if os.path.exists(fname): 823 downloadURL(url, fname) 824 print("Archive for %s stored as %s"%(name, fname)) 827 % (shellQuote(fname), checksum) ): 828 fatal('MD5 checksum mismatch for file %s' % fname)
|
/dports/databases/py-gdbm/Python-3.8.12/Modules/_ctypes/ |
H A D | stgdict.c | 221 PyObject *fname, *ftype, *bits; in MakeFields() local 225 if (!PyArg_ParseTuple(pair, "OO|O", &fname, &ftype, &bits)) { in MakeFields() 229 fdescr = (CFieldObject *)PyObject_GetAttr(descr->proto, fname); in MakeFields() 268 if (-1 == PyObject_SetAttr(type, fname, (PyObject *)new_descr)) { in MakeFields() 301 PyObject *fname = PySequence_Fast_GET_ITEM(anon_names, i); /* borrowed */ in MakeAnonFields() local 302 CFieldObject *descr = (CFieldObject *)PyObject_GetAttr(type, fname); in MakeAnonFields() 311 fname); in MakeAnonFields()
|
/dports/databases/py-gdbm/Python-3.8.12/Modules/ |
H A D | _curses_panel.c | 59 PyCursesCheckERR(int code, const char *fname) in PyCursesCheckERR() argument 64 if (fname == NULL) { in PyCursesCheckERR() 67 PyErr_Format(_curses_panelstate_global->PyCursesError, "%s() returned ERR", fname); in PyCursesCheckERR()
|
H A D | _cursesmodule.c | 186 PyCursesCheckERR(int code, const char *fname) in PyCursesCheckERR() argument 191 if (fname == NULL) { in PyCursesCheckERR() 194 PyErr_Format(PyCursesError, "%s() returned ERR", fname); in PyCursesCheckERR()
|
H A D | getpath.c | 148 char *fname; in _Py_wstat() local 149 fname = _Py_EncodeLocaleRaw(path, NULL); in _Py_wstat() 150 if (fname == NULL) { in _Py_wstat() 154 err = stat(fname, buf); in _Py_wstat() 155 PyMem_RawFree(fname); in _Py_wstat()
|
H A D | ossaudiodev.c | 245 _do_ioctl_1(int fd, PyObject *args, char *fname, unsigned long cmd) in _do_ioctl_1() argument 250 assert(strlen(fname) <= 30); in _do_ioctl_1() 251 strncat(argfmt, fname, 30); in _do_ioctl_1() 270 _do_ioctl_1_internal(int fd, PyObject *args, char *fname, unsigned long cmd) in _do_ioctl_1_internal() argument 275 assert(strlen(fname) <= 30); in _do_ioctl_1_internal() 276 strncat(argfmt, fname, 30); in _do_ioctl_1_internal() 290 _do_ioctl_0(int fd, PyObject *args, char *fname, unsigned long cmd) in _do_ioctl_0() argument 295 assert(strlen(fname) <= 30); in _do_ioctl_0() 296 strncat(argfmt, fname, 30); in _do_ioctl_0()
|
/dports/databases/py-gdbm/Python-3.8.12/PC/bdist_wininst/ |
H A D | extract.c | 226 char *fname; in unzip_archive() local 241 fname = (char *)&data[pos]; /* This is not null terminated! */ in unzip_archive() 262 if (0 == strnicmp(scheme[i].name, fname, in unzip_archive() 272 rest = fname + namelen; in unzip_archive() 292 strncat(pathname, fname, pfhdr->fname_length); in unzip_archive()
|
H A D | install.c | 651 static HINSTANCE LoadPythonDll(char *fname) in LoadPythonDll() argument 662 h = LoadLibrary(fname); in LoadPythonDll() 674 strcat(fullpath, fname); in LoadPythonDll() 1289 char fname[_MAX_PATH]; in StatusRoutine() local 1313 fname, NULL); in StatusRoutine() 1318 OutputDebugString(fname); in StatusRoutine() 2058 char fname[MAX_PATH]; in FinishedDlgProc() local 2067 strcpy(fname, python_dir); in FinishedDlgProc() 2068 strcat(fname, "\\Scripts\\"); in FinishedDlgProc() 2069 strcat(fname, install_script); in FinishedDlgProc() [all …]
|
/dports/databases/py-gdbm/Python-3.8.12/PCbuild/ |
H A D | prepare_ssl.py | 34 fname = os.path.abspath(os.path.join(p, filename)) 35 if os.path.isfile(fname) and fname not in ret: 36 ret.append(fname) 39 fname = os.path.abspath(os.path.join(p, filename)) 40 if os.path.isfile(fname) and fname not in ret: 41 ret.append(fname)
|
/dports/databases/py-gdbm/Python-3.8.12/Python/ |
H A D | fileutils.c | 1824 char fname[MAXPATHLEN]; in _Py_wgetcwd() 1828 if (getcwd(fname, Py_ARRAY_LENGTH(fname)) == NULL) in _Py_wgetcwd() 1830 wname = Py_DecodeLocale(fname, &len); in _Py_wgetcwd()
|
H A D | getargs.c | 346 fname==NULL ? "function" : fname, in vgetargs1_impl() 354 fname==NULL ? "function" : fname, in vgetargs1_impl() 376 fname==NULL ? "function" : fname, in vgetargs1_impl() 1672 if (fname) { in vgetargskeywords() 1673 fname++; in vgetargskeywords() 1710 (fname == NULL) ? "function" : fname, in vgetargskeywords() 1762 (fname == NULL) ? "function" : fname, in vgetargskeywords() 1769 (fname == NULL) ? "function" : fname, in vgetargskeywords() 1825 (fname == NULL) ? "function" : fname, in vgetargskeywords() 1854 (fname == NULL) ? "function" : fname, in vgetargskeywords() [all …]
|
/dports/databases/py-gdbm/Python-3.8.12/Tools/freeze/ |
H A D | checkextensions_win32.py | 145 def write_extension_table(fname, modules): argument 146 fp = open(fname, "w")
|
/dports/databases/py-gdbm/Python-3.8.12/Tools/scripts/ |
H A D | cleanfuture.py | 135 def __init__(self, f, fname): argument 137 self.fname = fname 212 (self.fname, srow, line))
|
H A D | combinerefs.py | 124 def combine(fname): argument 125 with open(fname) as f:
|
H A D | gprof2html.py | 43 stuff, fname = m.group(1, 2) 44 labels[fname] = fname 46 (stuff, fname, fname, fname)) 58 prefix, fname, suffix = m.group(1, 2, 3) 59 if fname not in labels: 64 (prefix, fname, fname, fname, suffix)) 67 (prefix, fname, fname, suffix))
|
H A D | ndiff.py | 61 def fopen(fname): argument 63 return open(fname) 65 return fail("couldn't open " + fname + ": " + str(detail))
|
H A D | parse_html5_entities.py | 82 fname = 'Lib/html/entities.py' variable 83 temp_fname = fname + '.temp' 84 with open(fname) as f1, open(temp_fname, 'w') as f2: 97 os.remove(fname) 98 os.rename(temp_fname, fname)
|
H A D | pep384_macrocheck.py | 108 def parse_file(fname): argument 110 with open(fname) as f: 119 dprint(fname, nr, status, line) 133 report(fname, nr + 1, macro) 137 def report(fname, nr, macro): argument 139 print(fname + ":" + str(nr), file=f)
|