complete migration to python3
[lxc-userspace.git] / scp_forward_agent.py
index f43638f..380a191 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 # Run this script as:
 # scp -S scp_forward_agent.py user@node
@@ -9,12 +9,12 @@ import os
 new_args = []
 fixed = False
 for arg in sys.argv[1:]:
-       if ('-oForwardAgent=no'==arg):
+       if '-oForwardAgent=no' == arg:
                arg = '-oForwardAgent=yes'
                fixed = True
        new_args.append(arg)
 
-if (not fixed):
+if not fixed:
        new_args = ['-oForwardAgent=yes'] + new_args
 
-os.execv('/usr/bin/ssh',['/usr/bin/ssh']+new_args)
+os.execv('/usr/bin/ssh', ['/usr/bin/ssh'] + new_args)