/third_party/python/Lib/test/ |
H A D | test_dbm_dumb.py | 38 with contextlib.closing(dumbdbm.open(_fname, 'c')) as f: 75 with contextlib.closing(dumbdbm.open(_fname, 'w')) as f: 84 with contextlib.closing(dumbdbm.open(_fname, 'r')) as f: 101 with contextlib.closing(dumbdbm.open(_fname)) as f: 105 with contextlib.closing(dumbdbm.open(_fname)) as f: 111 with contextlib.closing(dumbdbm.open(_fname)) as f: 114 with contextlib.closing(dumbdbm.open(_fname)) as f: 119 with contextlib.closing(dumbdbm.open(_fname, 'r')) as f: 124 with contextlib.closing(dumbdbm.open(_fname)) as f: 127 with contextlib.closing(dumbdb [all...] |
H A D | test_asyncgen.py | 456 with contextlib.closing(obj.__await__()) as g: 651 with contextlib.closing(anext(agen, "default").__await__()) as g: 664 with contextlib.closing(anext(agen, "default").__await__()) as g: 672 with contextlib.closing(anext(agen, "default").__await__()) as g: 693 with contextlib.closing(anext(agen, "default").__await__()) as g: 713 with contextlib.closing(anext(agen, "default").__await__()) as g: 729 with contextlib.closing(anext(agen, "default").__await__()) as g: 1514 self.assertIn('an error occurred during closing of asynchronous generator',
|
H A D | test_contextlib.py | 332 cm_docstring = closing.__doc__ 333 obj = closing(None) 343 with closing(x) as y: 355 with closing(x) as y:
|
H A D | test_coroutines.py | 2296 with contextlib.closing(corofn()) as coro: 2303 with contextlib.closing(corofn()) as coro: 2314 with contextlib.closing(coro): 2321 with contextlib.closing(corofn()) as coro:
|
/third_party/mesa3d/.gitlab-ci/bare-metal/ |
H A D | serial_buffer.py | 55 self.closing = False 70 self.closing = True 84 while not self.closing: 101 while not self.closing:
|
/third_party/skia/tools/ |
H A D | retrieve_from_googlesource.py | 11 from contextlib import closing namespace 29 with closing(urllib2.urlopen(base64_url)) as f:
|
/third_party/python/Modules/ |
H A D | _xxsubinterpretersmodule.c | 720 struct _channel_closing *closing; member 749 chan->closing = NULL; in _channel_new() 806 if (data == NULL && !PyErr_Occurred() && chan->closing != NULL) { in _channel_next() 1052 else if (!force && end == CHANNEL_SEND && ref->chan->closing != NULL) { in _channels_close() 1060 if (ref->chan->closing != NULL) { in _channels_close() 1065 // Mark the channel as closing and return. The channel in _channels_close() 1202 /* support for closing non-empty channels */ 1217 if (chan->closing != NULL) { in _channel_set_closing() 1221 chan->closing = PyMem_NEW(struct _channel_closing, 1); in _channel_set_closing() 1222 if (chan->closing in _channel_set_closing() 1245 struct _channel_closing *closing = chan->closing; _channel_finish_closing() local [all...] |
/third_party/node/tools/configure.d/ |
H A D | nodedownload.py | 74 with contextlib.closing(zipfile.ZipFile(packedfile, 'r')) as icuzip: 79 with contextlib.closing(tarfile.TarFile.open(packedfile, 'r')) as icuzip:
|
/third_party/json/docs/examples/ |
H A D | parse__allow_exceptions.cpp | 11 "key": "value without closing quotes in main()
|
/third_party/node/test/parallel/ |
H A D | test-net-server-max-connections-close-makes-more-available.js | 51 console.error(`closing connection ${index}`);
|
H A D | test-net-connect-options-allowhalfopen.js | 50 console.log(`connection ${this.clientId} is closing the server:
|
/third_party/mbedtls/tests/scripts/ |
H A D | generate_test_code.py | 598 closing = line.find('*/', opening.end(0)) 599 while closing == -1: 603 closing = line.find('*/', opening.end(0)) 604 pos = closing + 2
|
/third_party/python/Lib/test/test_sqlite3/ |
H A D | test_dbapi.py | 45 return contextlib.closing(cx) 657 with contextlib.closing(sqlite.connect(path)) as cx: 669 with contextlib.closing(sqlite.connect(path)) as cx: 678 with contextlib.closing(sqlite.connect(uri, uri=True)) as cx: 687 with contextlib.closing(sqlite.connect(uri, uri=True)) as cx: 703 with contextlib.closing(sqlite.connect(uri, uri=True)) as cx: 716 with contextlib.closing(sqlite.connect(uri, uri=True)) as cx: 733 with contextlib.closing(sqlite.connect(database=":memory:")) as cx:
|
/third_party/rust/crates/nom/examples/ |
H A D | string.rs | 159 // " character, the closing delimiter " would never match. When using in parse_string() 161 // loop won't accidentally match your closing delimiter! in parse_string()
|
/third_party/node/test/fixtures/wpt/streams/piping/ |
H A D | multiple-propagation.any.js | 138 }, 'Piping from an errored readable stream to a closing writable stream');
|
/third_party/node/deps/cjs-module-lexer/ |
H A D | lexer.js | 175 throw new Error('Unexpected closing bracket.'); 185 throw new Error('Unexpected closing brace.'); 192 throw new Error('Unexpected closing brace.'); 217 // - if a closing brace or paren, what token came before the corresponding
|
/third_party/python/Lib/idlelib/ |
H A D | pyshell.py | 592 if self.tkconsole.closing: 617 if not self.tkconsole.closing: 657 # XXX Should GC the remote tree when closing the window 783 if not self.tkconsole.closing: 1030 closing = False variable in PyShell 1113 self.closing = True
|
/third_party/python/Lib/ |
H A D | glob.py | 176 with contextlib.closing(_iterdir(dirname, dir_fd, dironly)) as it:
|
H A D | _osx_support.py | 69 with contextlib.closing(fp) as fp:
|
H A D | contextlib.py | 10 __all__ = ["asynccontextmanager", "contextmanager", "closing", "nullcontext", 326 class closing(AbstractContextManager): class 331 with closing(<module>.open(<arguments>)) as f:
|
H A D | asyncore.py | 221 closing = False variable in dispatcher 281 #self.log_info('closing channel %d:%s' % (fd, self)) 471 'uncaptured python exception, closing channel %s (%s:%s %s)' % (
|
/third_party/python/Objects/ |
H A D | genobject.c | 152 int exc, int closing) in gen_send_ex2() 184 if (PyCoro_CheckExact(gen) && !closing) { in gen_send_ex2() 284 gen_send_ex(PyGenObject *gen, PyObject *arg, int exc, int closing) in gen_send_ex() argument 287 if (gen_send_ex2(gen, arg, &result, exc, closing) == PYGEN_RETURN) { in gen_send_ex() 151 gen_send_ex2(PyGenObject *gen, PyObject *arg, PyObject **presult, int exc, int closing) gen_send_ex2() argument
|
/third_party/python/Parser/ |
H A D | tokenizer.c | 1536 /* Check if we are closing an async function */ in tok_get() 2106 "closing parenthesis '%c' does not match " in tok_get() 2112 "closing parenthesis '%c' does not match " in tok_get()
|
/third_party/node/test/fixtures/wpt/streams/readable-byte-streams/ |
H A D | general.any.js | 132 assert_equals(c.desiredSize, 0, 'after closing, desiredSize must be 0'); 189 }, 'ReadableStream with byte source: Test that closing a stream does not release a reader automatically'); 205 }, 'ReadableStream with byte source: Test that closing a stream does not release a BYOB reader automatically');
|
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
H A D | TransliteratorParser.java | 437 * up to the closing ')', put it in a segment matcher object,
|