removing unused code branch, brought test coverage up to 100% :)
This commit is contained in:
parent
5fbb4bfd72
commit
feb7a29b19
@ -139,10 +139,8 @@ def _textline_from_cipherline_and_padline(cipherline, padline):
|
|||||||
return ''.join(ret)
|
return ''.join(ret)
|
||||||
|
|
||||||
|
|
||||||
def _get_textwidth(text):
|
def _get_textwidth(textlines):
|
||||||
if isinstance(text, basestring):
|
return max([len(line) for line in textlines])
|
||||||
text = text.splitlines()
|
|
||||||
return max([len(line) for line in text])
|
|
||||||
|
|
||||||
|
|
||||||
def _is_padline(lineno):
|
def _is_padline(lineno):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user