Blame icu_sources_data.py-Decouple-from-Mozilla-build-system.patch

0d9273a
From: Simon McVittie <smcv@debian.org>
0d9273a
Date: Mon, 9 Oct 2017 09:22:12 +0100
0d9273a
Subject: icu_sources_data.py: Decouple from Mozilla build system
0d9273a
0d9273a
mozpack.path is a wrapper around os.path that normalizes path
0d9273a
separators on Windows, but on Unix we only have one path separator
0d9273a
so there's nothing to normalize. Avoid needing to import all of it.
0d9273a
---
0d9273a
 intl/icu_sources_data.py | 4 +++-
0d9273a
 1 file changed, 3 insertions(+), 1 deletion(-)
0d9273a
0d9273a
diff --git a/intl/icu_sources_data.py b/intl/icu_sources_data.py
0d9273a
index 98c0ccb..8cf9290 100644
0d9273a
--- a/intl/icu_sources_data.py
0d9273a
+++ b/intl/icu_sources_data.py
0ebbe70
@@ -22,7 +22,9 @@ import subprocess
0d9273a
 import sys
0d9273a
 import tempfile
0d9273a
0d9273a
-from mozpack import path as mozpath
0d9273a
+# Close enough
0d9273a
+import os.path as mozpath
0d9273a
+mozpath.normsep = lambda p: p
0d9273a
0d9273a
 # The following files have been determined to be dead/unused by a
0d9273a
 # semi-automated analysis. You can just remove any of the files below