renaming ansi library, thers another with the same generic name

This commit is contained in:
q
2019-02-24 08:24:30 +02:00
parent 26c22cafbf
commit 412339e35e
7 changed files with 11 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys, os
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import ansi
import ansicodes
from argparse import ArgumentParser
def setup_options():
@@ -22,7 +22,7 @@ def setup_options():
return opts
def long_format(table):
bc = ansi.code()
bc = ansicodes.code()
for x,col in enumerate(table):
for y,row in enumerate(col):
bc.posprint(
@@ -35,7 +35,7 @@ def long_format(table):
def short_format(table):
bc = ansi.code()
bc = ansicodes.code()
for x,col in enumerate(table):
for y,row in enumerate(col):
bc.posprint(
@@ -57,7 +57,7 @@ if __name__ == "__main__":
#sys.stdout.write(chr(c).decode('latin1'))
# remove control chars
table.pop(0)
bc = ansi.code()
bc = ansicodes.code()
bc.clear()
if opts.v:
lines = int(25 - len(opts.cs)/2 - 2)