Removed useless ArgumentRquired class
This commit is contained in:
parent
97c3596e5c
commit
f426d485a8
@ -29,7 +29,6 @@ parser.add_argument( "-t", action = "store_true", help = "Test without modifying
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
class ArgumentRequired( Exception ): pass
|
|
||||||
class InvalidArgument( Exception ): pass
|
class InvalidArgument( Exception ): pass
|
||||||
|
|
||||||
class LevelLogger:
|
class LevelLogger:
|
||||||
@ -112,13 +111,14 @@ class RegReplace:
|
|||||||
bb = "-\\|/"
|
bb = "-\\|/"
|
||||||
bb_i = 0
|
bb_i = 0
|
||||||
for root, dirs, files in os.walk( path ):
|
for root, dirs, files in os.walk( path ):
|
||||||
|
sys.stdout.write( "\n" ) # Move down
|
||||||
|
sys.stdout.write( "\033[K" ) # Clear line
|
||||||
|
sys.stdout.write( "%s ... %s" % ( bb[ bb_i ], root ) )
|
||||||
|
|
||||||
actions = self._compile_actions( root, files )
|
actions = self._compile_actions( root, files )
|
||||||
|
|
||||||
sys.stdout.write( "\n" )
|
sys.stdout.write("\r") # Goto line start
|
||||||
sys.stdout.write( "\033[K" )
|
sys.stdout.write( "\033[F" ) # Move up
|
||||||
sys.stdout.write( "%s ... %s" % ( bb[ bb_i ], root ) )
|
|
||||||
sys.stdout.write("\r")
|
|
||||||
sys.stdout.write( "\033[F" )
|
|
||||||
bb_i = bb_i + 1
|
bb_i = bb_i + 1
|
||||||
if 3 < bb_i:
|
if 3 < bb_i:
|
||||||
bb_i = 0
|
bb_i = 0
|
||||||
@ -153,9 +153,6 @@ try:
|
|||||||
includes = _compile_re( args.p )
|
includes = _compile_re( args.p )
|
||||||
excludes = _compile_re( args.e )
|
excludes = _compile_re( args.e )
|
||||||
|
|
||||||
if not args.d:
|
|
||||||
raise ArgumentRequired( "-d" )
|
|
||||||
|
|
||||||
if args.t:
|
if args.t:
|
||||||
print( "** Test Mode" )
|
print( "** Test Mode" )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user