From 3d2967438ce39611122d495af37c743d5fd3fa49 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Mon, 24 May 2010 18:28:43 +0200 Subject: [PATCH] Aggiunti colori commentosi. --- pywhois.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pywhois.py b/pywhois.py index 053f57e..9e046c0 100644 --- a/pywhois.py +++ b/pywhois.py @@ -287,6 +287,10 @@ class WhoisHTTPRequestHandler(BaseHTTPRequestHandler): margin: auto; margin-left: 50px; } + + .comment { + color: #993333; + } """ @@ -311,6 +315,8 @@ class WhoisHTTPRequestHandler(BaseHTTPRequestHandler): """ # Sostituiamo le cose con i tag relativi + for match in re.findall(r"(::.*)\n", string): + string = string.replace(match, "%s" % match) string = re.sub(r"\n", "
\n", string) # Creiamo effettivamente la pagina -- 2.1.4