diff options
Diffstat (limited to 'ick2/actions.py')
-rw-r--r-- | ick2/actions.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ick2/actions.py b/ick2/actions.py index c302eef..c901d6b 100644 --- a/ick2/actions.py +++ b/ick2/actions.py @@ -611,8 +611,9 @@ class DputAction(Action): # pragma: no cover def create_dput_config_file(self, config): fd, filename = tempfile.mkstemp() - os.write(fd, config) os.close(fd) + with open(filename, "w") as f: + f.write(config) return filename def get_dput_config(self, apt_server): |