Skip to content

Commit a59e3dc

Browse files
committed
[#2] Fix Python linting
1 parent 6bc8fe5 commit a59e3dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/03_sign_commit_using_the_gitpython_package.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ def main(gpg_private_key, passphrase, repo_dir):
227227
# https://gitpython.readthedocs.io/
228228

229229
# Get environment variables
230-
gpg_private_key = os.getenv('GPG_PRIVATE_KEY').replace(r'\n', '\n') # Replace \n character in docker env var with real line breaks.
230+
# Replace \n character in docker env var with real line breaks.
231+
gpg_private_key = os.getenv('GPG_PRIVATE_KEY').replace(r'\n', '\n')
231232
passphrase = os.environ.get('PASSPHRASE')
232233
mode = os.environ.get('MODE')
233234
repo_dir = os.environ.get('REPO_DIR')

0 commit comments

Comments
 (0)