From 162aac994118c7e240530fdf4a652dbb2f35ac10 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 22 Apr 2014 12:34:12 +0200 Subject: Use 'open' instead of 'file' since the later doesn't exist in python3 --- whatmaps/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'whatmaps/command.py') diff --git a/whatmaps/command.py b/whatmaps/command.py index 29a244f..6825f7e 100755 --- a/whatmaps/command.py +++ b/whatmaps/command.py @@ -96,7 +96,7 @@ def detect_distro(): def write_cmd_file(services, cmd_file, distro): "Write out commands needed to restart the services to a file" - out = file(cmd_file, 'w') + out = open(cmd_file, 'w') print >>out, '#! /bin/sh' for service in services: logging.debug("Need to restart %s", service) -- cgit v1.2.3