Home
last modified time | relevance | path

Searched refs:count_lines_with_wrapping (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Lib/idlelib/idle_test/
Dtest_squeezer.py11 from idlelib.squeezer import count_lines_with_wrapping, ExpandingButton, \
39 count_lines_with_wrapping(text, linewidth),
44 self.assertEqual(count_lines_with_wrapping(""), 0)
48 self.assertEqual(count_lines_with_wrapping("\ntext"), 2)
52 self.assertEqual(count_lines_with_wrapping("text\n"), 1)
56 self.assertEqual(count_lines_with_wrapping("1\n2\n3\n"), 3)
/third_party/python/Lib/idlelib/
Dsqueezer.py28 def count_lines_with_wrapping(s, linewidth=80): function
288 return count_lines_with_wrapping(s, self.editwin.width)