File: python3.12.patch

package info (click to toggle)
python-loompy 3.0.7%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,316 kB
  • sloc: python: 3,152; sh: 63; makefile: 16
file content (15 lines) | stat: -rw-r--r-- 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-12-04
Description: Fix syntax error with Python3.12

--- a/loompy/view_manager.py
+++ b/loompy/view_manager.py
@@ -20,7 +20,7 @@ class ViewManager:
 		Returns:
 			A LoomView object, an in-memory representation of the sliced file
 		"""
-		if type(slice_) is not tuple or len(slice_) is not 2:
+		if type(slice_) is not tuple or len(slice_) != 2:
 			raise ValueError("Views require slices along two dimensions")
 
 		rows = slice_[0]