Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 22 for write_text (0.12 seconds)

  1. docs_src/generate_clients/tutorial004_py310.py

            operation_id = operation["operationId"]
            to_remove = f"{tag}-"
            new_operation_id = operation_id[len(to_remove) :]
            operation["operationId"] = new_operation_id
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 493 bytes
    - Click Count (0)
  2. tests/test_file_and_form_order_issue_9116.py

    
    client = TestClient(app)
    
    
    @pytest.fixture
    def tmp_file_1(tmp_path: Path) -> Path:
        f = tmp_path / "example1.txt"
        f.write_text("foo")
        return f
    
    
    @pytest.fixture
    def tmp_file_2(tmp_path: Path) -> Path:
        f = tmp_path / "example2.txt"
        f.write_text("bar")
        return f
    
    
    @pytest.mark.parametrize("endpoint_path", ("/file_before_form", "/file_after_form"))
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  3. scripts/topic_repos.py

        new_repos_content = yaml.dump(data, sort_keys=False, width=200, allow_unicode=True)
        if repos_old_content == new_repos_content:
            logging.info("The data hasn't changed. Finishing.")
            return
        repos_path.write_text(new_repos_content, encoding="utf-8")
        logging.info("Setting up GitHub Actions git user")
        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  4. scripts/translation_fixer.py

                lang_code=lang_code,
                auto_fix=True,
                path=str(path),
            )
    
            # Write back the fixed document
            doc_lines.append("")  # Ensure file ends with a newline
            path.write_text("\n".join(doc_lines), encoding="utf-8")
    
        except ValueError as e:
            print(f"Error processing {path}: {e}")
            return False
        return True
    
    
    @cli.command()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  5. scripts/sponsors.py

        if old_content == new_content:
            logging.info(f"The content hasn't changed for {content_path}")
            return False
        content_path.write_text(new_content, encoding="utf-8")
        logging.info(f"Updated {content_path}")
        return True
    
    
    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  6. scripts/contributors.py

        if old_content == new_content:
            logging.info(f"The content hasn't changed for {content_path}")
            return False
        content_path.write_text(new_content, encoding="utf-8")
        logging.info(f"Updated {content_path}")
        return True
    
    
    def main() -> None:
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  7. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt

                        val newDependency = match.groupValues[1] + match.groupValues[2]
                        lines.replaceAll { it.replace(oldDependency, newDependency) }
                    }
                }
                file.writeText(lines.joinToString("\n"))
            }
        }
    
        private fun addDependencies(dependencyFixes: Map<String, List<String>>) {
            dependencyFixes.forEach { (filePath, dependencies) ->
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 03 06:57:08 GMT 2025
    - 6.2K bytes
    - Click Count (1)
  8. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTaskIntegrationTest.kt

        @Test
        fun `verify AlphabeticalAcceptedApiChangesTask detects misordered changes`() {
            //language=JSON
            firstAcceptedApiChangesFile.writeText(
                """
                    {
                        "acceptedApiChanges": [
                            {
                                "type": "org.gradle.api.tasks.AbstractExecTask",
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 14 02:17:00 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  9. build-logic/build-update-utils/src/main/kotlin/gradlebuild.wrapper.gradle.kts

        val jvmOpts = "-Dfile.encoding=UTF-8"
        inputs.property("jvmOpts", jvmOpts)
        doLast {
            val optsEnvVar = "DEFAULT_JVM_OPTS"
            scriptFile.writeText(scriptFile.readText().replace("$optsEnvVar='", "$optsEnvVar='$jvmOpts "))
            batchScript.writeText(batchScript.readText().replace("set $optsEnvVar=", "set $optsEnvVar=$jvmOpts "))
        }
    }
    
    fun Project.wrapperUpdateTask(name: String, label: String) {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Sep 17 08:58:33 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  10. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt

         */
        protected
        fun setupPluginRequirements() {
            projectDir.resolve("version.txt").writeText("9999999.0") // All released versions should be lower than this
            projectDir.resolve("released-versions.json").writeText(
                """
                    {
                      "latestReleaseSnapshot": {
                        "version": "7.6-20220831090819+0000",
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Nov 29 14:03:44 GMT 2024
    - 6K bytes
    - Click Count (0)
Back to Top