[PATCH 22/37] Clean up imports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andy Grover <agrover@xxxxxxxxxx>
---
 targetcli/ui_root.py |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/targetcli/ui_root.py b/targetcli/ui_root.py
index 9d8f1ca..7148009 100644
--- a/targetcli/ui_root.py
+++ b/targetcli/ui_root.py
@@ -17,12 +17,13 @@ You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 '''
 
-from os import system
 from rtslib import RTSRoot
 from ui_node import UINode
 from socket import gethostname
 from ui_target import UIFabricModule
 from ui_backstore import UIBackstores
+import json
+import shutil
 
 default_save_file = "/etc/target/saveconfig.json"
 
@@ -76,10 +77,6 @@ class UIRoot(UINode):
         Saves the current configuration to a file so that it can be restored
         on next boot.
         '''
-        from rtslib.root import RTSRoot
-        import json
-        import shutil
-
         self.assert_root()
 
         backupfile = savefile + ".backup"
@@ -100,9 +97,6 @@ class UIRoot(UINode):
         '''
         Restores configuration from a file.
         '''
-        from rtslib.root import RTSRoot
-        import json
-
         self.assert_root()
 
         with open(savefile, "r") as f:
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux