Skip to content

Commit ebb306e

Browse files
chore: formatting details
1 parent 397e02d commit ebb306e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mpqp/execution/connection/qlm_connection.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ def config_qlm_account(username: str, password: str, global_config: bool) -> boo
4848
# if file doesn't exist, create it, or overwrite the credentials in the ~/.netrc file
4949
with open(netrc_path, "w") as file:
5050
file.write(
51-
"machine qlm35e.neasqc.eu\nlogin "
52-
+ username
53-
+ "\npassword "
54-
+ password
51+
f"""\
52+
machine qlm35e.neasqc.eu
53+
login {username}
54+
password {password}"""
5555
)
56-
# Set the permissions to '0600' (equivalent to 'chmod og-rw')
56+
# Set the permissions to read and right for user only
5757
os.chmod(netrc_path, 0o600)
5858

5959
from qat.qlmaas import QLMaaSConnection # type: ignore

0 commit comments

Comments
 (0)