Skip to content

Commit

Permalink
disable custom pprints for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Dec 19, 2019
1 parent b6ae3ff commit 68733c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions amm/repl/src/main/scala/ammonite/repl/PPrints.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import pprint.Renderer
object PPrints{
val replPPrintHandlers: PartialFunction[Any, pprint.Tree] = {
case x: ammonite.ops.LsSeq => PPrints.lsSeqRepr(x)
case x: os.Path => PPrints.pathRepr(x)
case x: os.RelPath => PPrints.relPathRepr(x)
case x: ammonite.ops.Path => PPrints.pathRepr(os.Path(x.toString))
case x: ammonite.ops.RelPath => PPrints.relPathRepr(os.RelPath(x.toString))
// case x: os.Path => PPrints.pathRepr(x)
// case x: os.RelPath => PPrints.relPathRepr(x)
// case x: ammonite.ops.Path => PPrints.pathRepr(os.Path(x.toString))
// case x: ammonite.ops.RelPath => PPrints.relPathRepr(os.RelPath(x.toString))
case x: ammonite.ops.CommandResult => PPrints.commandResultRepr(x)
case t: History => pprint.Tree.Lazy(ctx => Iterator(t.mkString(Util.newLine)))
case t: GrepResult => pprint.Tree.Lazy(ctx => Iterator(GrepResult.grepResultRepr(t, ctx)))
Expand Down

0 comments on commit 68733c4

Please sign in to comment.