Skip to content

Commit 407780c

Browse files
committed
fix travis and re-fix linewrap
1 parent 8747da3 commit 407780c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_pyportal.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import gc
4949
import board
5050
import busio
51-
import microcontroller
5251
from digitalio import DigitalInOut
5352
import pulseio
5453
import adafruit_touchscreen
@@ -834,9 +833,7 @@ def wrap_nicely(string, max_chars):
834833
the_line = ""
835834
for w in words:
836835
if len(the_line+' '+w) <= max_chars:
837-
if the_lines:
838-
the_line += ' '
839-
the_line += w
836+
the_line += ' '+w
840837
else:
841838
the_lines.append(the_line)
842839
the_line = ''+w

0 commit comments

Comments
 (0)