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('"""', '\\"\\"\\"') ), )