Skip to content
Snippets Groups Projects
Commit 98095dc2 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Fix pylint unspecified-encoding

parent d2328f22
No related branches found
No related tags found
1 merge request!131WIP: Fix linting
...@@ -62,8 +62,8 @@ def git_commit(ch, method, properties, body): ...@@ -62,8 +62,8 @@ def git_commit(ch, method, properties, body):
logger.debug("git checkout -b %s", branch_name) logger.debug("git checkout -b %s", branch_name)
git.checkout("-b", branch_name) git.checkout("-b", branch_name)
logger.debug("open(%s, 'w'), open(%s, 'w')", user_ldif, group_ldif) logger.debug("open(%s, 'w'), open(%s, 'w')", user_ldif, group_ldif)
with open(user_ldif, "w") as ldif_u, open( with open(user_ldif, "w", encoding="utf-8") as ldif_u, open(
group_ldif, "w" group_ldif, "w", encoding="utf-8"
) as ldif_g: ) as ldif_g:
logger.debug( logger.debug(
"ldapsearch -LLL -x -H ldaps://ldapserver -b 'dc=cm,dc=clu" "ldapsearch -LLL -x -H ldaps://ldapserver -b 'dc=cm,dc=clu"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment