modified comment formatter
This commit is contained in:
parent
9658ebdb48
commit
7f96655779
|
|
@ -36,7 +36,7 @@ class PacketCommentPolicy():
|
||||||
return self._formatComment(comment)
|
return self._formatComment(comment)
|
||||||
|
|
||||||
def _formatComment(self, comment):
|
def _formatComment(self, comment):
|
||||||
"""Remove junk from comment (probably characters that should have been picked up during earlier parsing)
|
"""Remove junk from comment
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
comment (string): Comment from packet
|
comment (string): Comment from packet
|
||||||
|
|
@ -54,13 +54,13 @@ class PacketCommentPolicy():
|
||||||
comment = self._rchop(comment, "_%")
|
comment = self._rchop(comment, "_%")
|
||||||
comment = self._lchop(comment, "_#")
|
comment = self._lchop(comment, "_#")
|
||||||
comment = self._rchop(comment, "_#")
|
comment = self._rchop(comment, "_#")
|
||||||
comment = self._rchop(comment, "_\"")
|
|
||||||
comment = self._lchop(comment, "_\"")
|
comment = self._lchop(comment, "_\"")
|
||||||
|
comment = self._rchop(comment, "_\"")
|
||||||
comment = self._lchop(comment, "_$")
|
comment = self._lchop(comment, "_$")
|
||||||
comment = self._rchop(comment, "_$")
|
comment = self._rchop(comment, "_$")
|
||||||
comment = self._lchop(comment, "_)")
|
comment = self._lchop(comment, "_)")
|
||||||
comment = self._lchop(comment, "_(")
|
|
||||||
comment = self._rchop(comment, "_)")
|
comment = self._rchop(comment, "_)")
|
||||||
|
comment = self._lchop(comment, "_(")
|
||||||
comment = self._rchop(comment, "_(")
|
comment = self._rchop(comment, "_(")
|
||||||
comment = self._lchop(comment, "()")
|
comment = self._lchop(comment, "()")
|
||||||
comment = self._rchop(comment, "()")
|
comment = self._rchop(comment, "()")
|
||||||
|
|
@ -75,8 +75,8 @@ class PacketCommentPolicy():
|
||||||
comment = self._lchop(comment, "1}")
|
comment = self._lchop(comment, "1}")
|
||||||
comment = self._rchop(comment, "1}")
|
comment = self._rchop(comment, "1}")
|
||||||
comment = self._lchop(comment, "_1")
|
comment = self._lchop(comment, "_1")
|
||||||
comment = self._lchop(comment, "_1")
|
comment = self._rchop(comment, "_1")
|
||||||
comment = self._rchop(comment, "\"(}")
|
comment = self._lchop(comment, "\"(}")
|
||||||
comment = self._rchop(comment, "\"(}")
|
comment = self._rchop(comment, "\"(}")
|
||||||
comment = self._rchop(comment, "=")
|
comment = self._rchop(comment, "=")
|
||||||
comment = self._lchop(comment, "]")
|
comment = self._lchop(comment, "]")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue