From 7dfd807759051bcf8d2cc9314658944146e57a90 Mon Sep 17 00:00:00 2001 From: davidteather Date: Sun, 6 Dec 2020 02:05:51 -0600 Subject: [PATCH] Fix one_liner --- .github/workflows/package-test.yml | 2 +- python_obfuscator/techniques.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-test.yml b/.github/workflows/package-test.yml index 6a92d06..7944761 100644 --- a/.github/workflows/package-test.yml +++ b/.github/workflows/package-test.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] + os: [macos-latest, windows-latest, ubuntu-latest] python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 diff --git a/python_obfuscator/techniques.py b/python_obfuscator/techniques.py index e0ea15d..9ada11f 100644 --- a/python_obfuscator/techniques.py +++ b/python_obfuscator/techniques.py @@ -11,7 +11,7 @@ def one_liner(code): formatted_code = re.sub( r"(;)\1+", ";", - """exec(\"\"\"{}\"\"\")""".format( + """exec(\"\"\"{};\"\"\")""".format( code.replace("\n", ";").replace('"""', '\\"\\"\\"') ), )