MCPcopy Create free account
hub / github.com/chubin/cheat.sh / _cut_block

Method _cut_block

lib/adapter/learnxiny.py:564–570  ·  view source on GitHub ↗
(block, start_block=False)

Source from the content-addressed store, hash-verified

562
563 @staticmethod
564 def _cut_block(block, start_block=False):
565 answer = block[2:-1]
566 if answer[0].split() == "":
567 answer = answer[1:]
568 if answer[-1].split() == "":
569 answer = answer[:1]
570 return answer
571
572
573class LearnJuliaAdapter(LearnXYAdapter):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected