cwctl.py
changeset 9371 1348202527a6
parent 9340 b1e933b0e850
child 9372 e87a808a4c32
--- a/cwctl.py	Thu Dec 19 17:21:35 2013 +0100
+++ b/cwctl.py	Thu Dec 12 16:18:58 2013 +0100
@@ -48,13 +48,9 @@
 from cubicweb.toolsutils import Command, rm, create_dir, underline_title
 from cubicweb.__pkginfo__ import version
 
-if support_args(CommandLine, 'check_duplicated_command'):
-    # don't check duplicated commands, it occurs when reloading site_cubicweb
-    CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
-                        version=version, check_duplicated_command=False)
-else:
-    CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
-                        version=version)
+# don't check duplicated commands, it occurs when reloading site_cubicweb
+CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
+                    version=version, check_duplicated_command=False)
 
 def wait_process_end(pid, maxtry=10, waittime=1):
     """wait for a process to actually die"""