[server] drop support for antediluvian lgdb versions
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 16 Oct 2013 11:57:47 +0200
changeset 9321 212869484c65
parent 9320 15bd24f9b9e0
child 9322 2dae5bf5ea68
[server] drop support for antediluvian lgdb versions That API was changed in 2010, before logilab-database was moved out of logilab-common.
server/sqlutils.py
--- a/server/sqlutils.py	Tue Oct 08 16:56:45 2013 +0200
+++ b/server/sqlutils.py	Wed Oct 16 11:57:47 2013 +0200
@@ -41,11 +41,6 @@
 SQL_PREFIX = 'cw_'
 
 def _run_command(cmd):
-    """backup/restore command are string w/ lgc < 0.47, lists with earlier versions
-    """
-    if isinstance(cmd, basestring):
-        print '->', cmd
-        return subprocess.call(cmd, shell=True)
     print ' '.join(cmd)
     return subprocess.call(cmd)