Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37504117
en ru br
ALT Linux repositórios
S:78.11.0-alt2.1

Group :: Sistema/Bibliotecas
RPM: libmozjs78

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: mozjs-78.11.0-alt-python-3.11.patch
Download


diff -durN mozjs-78.11.0.orig/python/mozbuild/mozbuild/action/process_define_files.py mozjs-78.11.0/python/mozbuild/mozbuild/action/process_define_files.py
--- mozjs-78.11.0.orig/python/mozbuild/mozbuild/action/process_define_files.py	2021-05-31 17:20:25.000000000 +0300
+++ mozjs-78.11.0/python/mozbuild/mozbuild/action/process_define_files.py	2023-06-08 13:54:26.396114891 +0300
@@ -36,7 +36,7 @@
             not config.substs.get('JS_STANDALONE'):
         config = PartialConfigEnvironment(mozpath.join(topobjdir, 'js', 'src'))
 
-    with open(path, 'rU') as input:
+    with open(path, "r") as input:
         r = re.compile('^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?', re.U)
         for l in input:
             m = r.match(l)
diff -durN mozjs-78.11.0.orig/python/mozbuild/mozbuild/backend/base.py mozjs-78.11.0/python/mozbuild/mozbuild/backend/base.py
--- mozjs-78.11.0.orig/python/mozbuild/mozbuild/backend/base.py	2021-05-31 17:20:25.000000000 +0300
+++ mozjs-78.11.0/python/mozbuild/mozbuild/backend/base.py	2023-06-08 13:54:26.396114891 +0300
@@ -265,7 +265,7 @@
         return status
 
     @contextmanager
-    def _write_file(self, path=None, fh=None, readmode='rU'):
+    def _write_file(self, path=None, fh=None, readmode="r"):
         """Context manager to write a file.
 
         This is a glorified wrapper around FileAvoidWrite with integration to
diff -durN mozjs-78.11.0.orig/python/mozbuild/mozbuild/preprocessor.py mozjs-78.11.0/python/mozbuild/mozbuild/preprocessor.py
--- mozjs-78.11.0.orig/python/mozbuild/mozbuild/preprocessor.py	2021-05-31 17:20:25.000000000 +0300
+++ mozjs-78.11.0/python/mozbuild/mozbuild/preprocessor.py	2023-06-08 13:54:26.393115055 +0300
@@ -517,7 +517,7 @@
 
         if args:
             for f in args:
-                with io.open(f, 'rU', encoding='utf-8') as input:
+                with io.open(f, "r", encoding='utf-8') as input:
                     self.processFile(input=input, output=out)
             if depfile:
                 mk = Makefile()
@@ -807,7 +807,7 @@
                     args = self.applyFilters(args)
                 if not os.path.isabs(args):
                     args = os.path.join(self.curdir, args)
-                args = io.open(args, 'rU', encoding='utf-8')
+                args = io.open(args, "r", encoding='utf-8')
             except Preprocessor.Error:
                 raise
             except Exception:
@@ -862,7 +862,7 @@
     pp = Preprocessor(defines=defines,
                       marker=marker)
     for f in includes:
-        with io.open(f, 'rU', encoding='utf-8') as input:
+        with io.open(f, "r", encoding='utf-8') as input:
             pp.processFile(input=input, output=output)
     return pp.includes
 
diff -durN mozjs-78.11.0.orig/python/mozbuild/mozbuild/util.py mozjs-78.11.0/python/mozbuild/mozbuild/util.py
--- mozjs-78.11.0.orig/python/mozbuild/mozbuild/util.py	2023-06-08 13:52:03.040966625 +0300
+++ mozjs-78.11.0/python/mozbuild/mozbuild/util.py	2023-06-08 13:57:32.880901093 +0300
@@ -225,7 +225,7 @@
     still occur, as well as diff capture if requested.
     """
 
-    def __init__(self, filename, capture_diff=False, dry_run=False, readmode="rU"):
+    def __init__(self, filename, capture_diff=False, dry_run=False, readmode="r"):
         BytesIO.__init__(self)
         self.name = filename
         assert type(capture_diff) == bool
@@ -1447,7 +1447,7 @@
 
         def my_get_command_line():
             with open(
-                os.path.join(os.path.dirname(__file__), "fork_interpose.py"), "rU"
+                os.path.join(os.path.dirname(__file__), "fork_interpose.py"), "r"
             ) as fork_file:
                 fork_code = fork_file.read()
             # Add our relevant globals.
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009