From e3f589740054af6a99ecd49d9113b36f54ceeb37 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Jan 2023 22:23:55 +0100 Subject: [PATCH] Bump install-pinned/pyupgrade from 847ef2b8aa35a3817372540b887f4130d864d6b7 to 423622e7c2088eeba495a591385ec22074284f90 (#5840) * Bump install-pinned/pyupgrade Bumps [install-pinned/pyupgrade](https://github.com/install-pinned/pyupgrade) from 847ef2b8aa35a3817372540b887f4130d864d6b7 to 423622e7c2088eeba495a591385ec22074284f90. - [Release notes](https://github.com/install-pinned/pyupgrade/releases) - [Commits](https://github.com/install-pinned/pyupgrade/compare/847ef2b8aa35a3817372540b887f4130d864d6b7...423622e7c2088eeba495a591385ec22074284f90) --- updated-dependencies: - dependency-name: install-pinned/pyupgrade dependency-type: direct:production ... Signed-off-by: dependabot[bot] * [autofix.ci] apply automated fixes Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .github/workflows/autofix.yml | 2 +- mitmproxy/optmanager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 234c859b8..d8f81150a 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: install-pinned/pyupgrade@847ef2b8aa35a3817372540b887f4130d864d6b7 + - uses: install-pinned/pyupgrade@423622e7c2088eeba495a591385ec22074284f90 - name: Run pyupgrade run: | shopt -s globstar diff --git a/mitmproxy/optmanager.py b/mitmproxy/optmanager.py index 32d448323..5fa10a787 100644 --- a/mitmproxy/optmanager.py +++ b/mitmproxy/optmanager.py @@ -611,5 +611,5 @@ def save(opts: OptManager, path: str, defaults: bool = False) -> None: else: data = "" - with open(path, "wt", encoding="utf8") as f: + with open(path, "w", encoding="utf8") as f: serialize(opts, f, data, defaults)