[Git][debian-gis-team/openlayers][master] 2 commits: Update python3.patch to not use open(fd, 'U'), removed in python3.11. (closes: #1028802)

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sat Jan 14 14:11:30 GMT 2023



Bas Couwenberg pushed to branch master at Debian GIS Project / openlayers


Commits:
7214baaf by Bas Couwenberg at 2023-01-14T14:27:35+01:00
Update python3.patch to not use open(fd, 'U'), removed in python3.11. (closes: #1028802)

- - - - -
1c604cc1 by Bas Couwenberg at 2023-01-14T14:28:01+01:00
Set distribution to unstable.

- - - - -


2 changed files:

- debian/changelog
- debian/patches/python3.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+openlayers (2.13.1+ds2-10) unstable; urgency=medium
+
+  * Team upload.
+  * Update python3.patch to not use open(fd, 'U'), removed in python3.11.
+    (closes: #1028802)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sat, 14 Jan 2023 14:27:41 +0100
+
 openlayers (2.13.1+ds2-9) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/python3.patch
=====================================
@@ -238,16 +238,19 @@ Forwarded: not-needed
  
  
  class Config:
-@@ -181,7 +181,7 @@ def run (sourceDirectory, outputFilename
+@@ -181,9 +181,9 @@ def run (sourceDirectory, outputFilename
      ## Import file source code
      ## TODO: Do import when we walk the directories above?
      for filepath in allFiles:
 -        print "Importing: %s" % filepath
 +        print("Importing: %s" % filepath)
          fullpath = os.path.join(sourceDirectory, filepath).strip()
-         content = open(fullpath, "U").read() # TODO: Ensure end of line @ EOF?
+-        content = open(fullpath, "U").read() # TODO: Ensure end of line @ EOF?
++        content = open(fullpath, "r").read() # TODO: Ensure end of line @ EOF?
          files[filepath] = SourceFile(filepath, content, cfg.exclude) # TODO: Chop path?
-@@ -197,16 +197,17 @@ def run (sourceDirectory, outputFilename
+ 
+     print
+@@ -197,32 +197,34 @@ def run (sourceDirectory, outputFilename
          complete = True
  
          ## Resolve the dependencies
@@ -265,11 +268,12 @@ Forwarded: not-needed
                      fullpath = os.path.join(sourceDirectory, path).strip()
                      if os.path.exists(fullpath):
 -                        print "Importing: %s" % path
+-                        content = open(fullpath, "U").read() # TODO: Ensure end of line @ EOF?
 +                        print("Importing: %s" % path)
-                         content = open(fullpath, "U").read() # TODO: Ensure end of line @ EOF?
++                        content = open(fullpath, "r").read() # TODO: Ensure end of line @ EOF?
                          files[path] = SourceFile(path, content, cfg.exclude) # TODO: Chop path?
                      else:
-@@ -214,15 +215,16 @@ def run (sourceDirectory, outputFilename
+                         raise MissingImport("File '%s' not found (required by '%s')." % (path, filepath))
          
      # create dictionary of dependencies
      dependencies = {}



View it on GitLab: https://salsa.debian.org/debian-gis-team/openlayers/-/compare/401f0e2e32a8e1d5ad456865afd67cf8e9c6771f...1c604cc121046352e697ee16a5151b80b3973825

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/openlayers/-/compare/401f0e2e32a8e1d5ad456865afd67cf8e9c6771f...1c604cc121046352e697ee16a5151b80b3973825
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230114/b286f807/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list