From 2e1b003902e7a18993de5564ee85d17d82912b08 Mon Sep 17 00:00:00 2001
From: dcharbonnier <d.charbonnier@oxys.net>
Date: Fri, 6 Dec 2019 15:41:11 +0100
Subject: [PATCH] fix(pypi): support simple containing <pre> (#4937)

---
 lib/datasource/pypi/index.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/datasource/pypi/index.ts b/lib/datasource/pypi/index.ts
index 149dd52380..b6eafd7707 100644
--- a/lib/datasource/pypi/index.ts
+++ b/lib/datasource/pypi/index.ts
@@ -108,7 +108,7 @@ async function getSimpleDependency(
       logger.debug({ dependency: depName }, 'pip package not found');
       return null;
     }
-    const root: HTMLElement = parse(dep) as any;
+    const root: HTMLElement = parse(dep.replace(/<\/?pre>/, '')) as any;
     const links = root.querySelectorAll('a');
     const versions = new Set<string>();
     for (const link of Array.from(links)) {
-- 
GitLab