python3 - 2to3 + miscell obvious tweaks
[sfa.git] / sfatables / commands / Insert.py
index d401092..63e3bea 100644 (file)
@@ -1,7 +1,7 @@
 import os, time
 import libxml2
 from sfatables.command import Command
-from sfatables.globals import *
+from sfatables.globals import sfatables_config, target_dir, match_dir
 
 class Insert(Command):
     def __init__(self):
@@ -47,7 +47,7 @@ class Insert(Command):
 
     def call(self, command_options, match_options, target_options):
         if (len(command_options.args)<2):
-            print "Please specify the chain and the rule number to insert, e.g. sfatables -I INCOMING 1 -- ...."
+            print("Please specify the chain and the rule number to insert, e.g. sfatables -I INCOMING 1 -- ....")
             return
 
         chain = command_options.args[0]