clarified signature: let Sledgehammer handle SystemOnTPTP comments;
authorwenzelm
Sat, 13 Mar 2021 14:55:27 +0100
changeset 73425 d0f529d5c5c9
parent 73424 2b657a70116c
child 73426 bd8bce50b9d4
clarified signature: let Sledgehammer handle SystemOnTPTP comments;
src/HOL/Tools/ATP/system_on_tptp.scala
src/Pure/General/http.scala
--- a/src/HOL/Tools/ATP/system_on_tptp.scala	Sat Mar 13 14:27:34 2021 +0100
+++ b/src/HOL/Tools/ATP/system_on_tptp.scala	Sat Mar 13 14:55:27 2021 +0100
@@ -35,11 +35,8 @@
 
   /* list systems */
 
-  def proper_lines(content: HTTP.Content): List[String] =
-    Library.trim_split_lines(content.text).filterNot(_.startsWith("%"))
-
   def list_systems(url: URL): List[String] =
-    proper_lines(post_request(url, List("SubmitButton" -> "ListSystems", "ListStatus" -> "READY")))
+    post_request(url, List("SubmitButton" -> "ListSystems", "ListStatus" -> "READY")).text_lines
 
   object List_Systems extends Scala.Fun("SystemOnTPTP.list_systems", thread = true)
   {
--- a/src/Pure/General/http.scala	Sat Mar 13 14:27:34 2021 +0100
+++ b/src/Pure/General/http.scala	Sat Mar 13 14:55:27 2021 +0100
@@ -30,6 +30,7 @@
     encoding: String = default_encoding)
   {
     def text: String = new String(bytes.array, encoding)
+    def text_lines: List[String] = Library.trim_split_lines(text)
   }
 
   def read_content(file: JFile): Content =