Home
last modified time | relevance | path

Searched refs:closing (Results 1 - 25 of 34) sorted by relevance

12

/third_party/python/Lib/test/
H A Dtest_dbm_dumb.py38 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 Dtest_asyncgen.py456 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 Dtest_contextlib.py332 cm_docstring = closing.__doc__
333 obj = closing(None)
343 with closing(x) as y:
355 with closing(x) as y:
H A Dtest_coroutines.py2296 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 Dserial_buffer.py55 self.closing = False
70 self.closing = True
84 while not self.closing:
101 while not self.closing:
/third_party/skia/tools/
H A Dretrieve_from_googlesource.py11 from contextlib import closing namespace
29 with closing(urllib2.urlopen(base64_url)) as f:
/third_party/python/Modules/
H A D_xxsubinterpretersmodule.c720 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 Dnodedownload.py74 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 Dparse__allow_exceptions.cpp11 "key": "value without closing quotes in main()
/third_party/node/test/parallel/
H A Dtest-net-server-max-connections-close-makes-more-available.js51 console.error(`closing connection ${index}`);
H A Dtest-net-connect-options-allowhalfopen.js50 console.log(`connection ${this.clientId} is closing the server:
/third_party/mbedtls/tests/scripts/
H A Dgenerate_test_code.py598 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 Dtest_dbapi.py45 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 Dstring.rs159 // " 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 Dmultiple-propagation.any.js138 }, 'Piping from an errored readable stream to a closing writable stream');
/third_party/node/deps/cjs-module-lexer/
H A Dlexer.js175 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 Dpyshell.py592 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 Dglob.py176 with contextlib.closing(_iterdir(dirname, dir_fd, dironly)) as it:
H A D_osx_support.py69 with contextlib.closing(fp) as fp:
H A Dcontextlib.py10 __all__ = ["asynccontextmanager", "contextmanager", "closing", "nullcontext",
326 class closing(AbstractContextManager): class
331 with closing(<module>.open(<arguments>)) as f:
H A Dasyncore.py221 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 Dgenobject.c152 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 Dtokenizer.c1536 /* 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 Dgeneral.any.js132 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 DTransliteratorParser.java437 * up to the closing ')', put it in a segment matcher object,

Completed in 33 milliseconds

12