X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=blobdiff_plain;f=controller.py;h=0732ee59bd57e2da998373e65b4505da10c24d43;hp=c66ddff3576b48aa065353a56fcba230a3e7a20b;hb=48a73b18fd7daed13c645c1adeddb57b560e7a2d;hpb=7b8fc390afd0349706c45c3ae970770cdf9dceae diff --git a/controller.py b/controller.py index c66ddff..0732ee5 100644 --- a/controller.py +++ b/controller.py @@ -34,5 +34,5 @@ def add_shell(shell): etc_shells.close() if shell not in valid_shells: etc_shells = open('/etc/shells', 'a') - print >>etc_shells, shell + print(shell, file=etc_shells) etc_shells.close()