"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "poetry/console/logging/formatters/builder_formatter.py" between
poetry-1.1.15.tar.gz and poetry-1.2.0.tar.gz

About: Poetry is a tool for dependency management and packaging in Python.

builder_formatter.py  (poetry-1.1.15):builder_formatter.py  (poetry-1.2.0)
from __future__ import annotations
import re import re
from .formatter import Formatter from poetry.console.logging.formatters.formatter import Formatter
class BuilderLogFormatter(Formatter): class BuilderLogFormatter(Formatter):
def format(self, msg): # type: (str) -> str def format(self, msg: str) -> str:
if msg.startswith("Building "): if msg.startswith("Building "):
msg = re.sub("Building (.+)", " - Building <info>\\1</info>", msg) msg = re.sub("Building (.+)", " - Building <info>\\1</info>", msg)
elif msg.startswith("Built "): elif msg.startswith("Built "):
msg = re.sub("Built (.+)", " - Built <success>\\1</success>", msg) msg = re.sub("Built (.+)", " - Built <success>\\1</success>", msg)
elif msg.startswith("Adding: "): elif msg.startswith("Adding: "):
msg = re.sub("Adding: (.+)", " - Adding: <b>\\1</b>", msg) msg = re.sub("Adding: (.+)", " - Adding: <b>\\1</b>", msg)
elif msg.startswith("Executing build script: "): elif msg.startswith("Executing build script: "):
msg = re.sub( msg = re.sub(
"Executing build script: (.+)", "Executing build script: (.+)",
" - Executing build script: <b>\\1</b>", " - Executing build script: <b>\\1</b>",
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)