kyu_4.strip_comments package

Submodules

kyu_4.strip_comments.solution module

kyu_4.strip_comments.solution.solution(string: str, markers: list) → str[source]

The solution strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line will be stripped out as well.

Parameters
  • string

  • markers

Returns

kyu_4.strip_comments.test_solution module

class kyu_4.strip_comments.test_solution.SolutionTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_solution()[source]

Testing ‘solution’ function

The solution should strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line should also be stripped out.

Module contents