[med-svn] [Git][med-team/python-cgelib][master] Fix Python3 syntax

Andreas Tille (@tille) gitlab at salsa.debian.org
Tue Jul 4 19:31:28 BST 2023



Andreas Tille pushed to branch master at Debian Med / python-cgelib


Commits:
a9fa57b2 by Andreas Tille at 2023-07-04T20:29:42+02:00
Fix Python3 syntax

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/python3_syntax.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-cgelib (0.7.3-3) UNRELEASED; urgency=medium
+
+  * Fix Python3 syntax
+    Closes: #1040282
+
+ -- Andreas Tille <tille at debian.org>  Tue, 04 Jul 2023 20:28:19 +0200
+
 python-cgelib (0.7.3-2) unstable; urgency=medium
 
   * Source-only upload


=====================================
debian/patches/python3_syntax.patch
=====================================
@@ -0,0 +1,38 @@
+Description: Fix Python3 syntax
+Bug-Debian: https://bugs.debian.org/1040282
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 04 Jul 2023 20:28:19 +0200
+
+--- a/src/cgelib/alignment/KMA/read_files.py
++++ b/src/cgelib/alignment/KMA/read_files.py
+@@ -95,7 +95,7 @@ class KMA_Result(dict):
+         while iter_true:
+             list_hits = []
+             for kma_file in self.files:
+-                if kma_file is "VCF" and len(self.files) > 1:
++                if kma_file == "VCF" and len(self.files) > 1:
+                     if vcf_entry is None:
+                         entry = self._get_entry(kma_file)
+                         if entry is None:
+--- a/src/cgelib/alignment/aligner.py
++++ b/src/cgelib/alignment/aligner.py
+@@ -243,7 +243,7 @@ class BlastNAligner(_Aligner):
+     def get_header_format(alignment_parameters):
+         file_format, header_format = BlastNAligner.get_output_format(
+                                     alignment_parameters=alignment_parameters)
+-        if file_format is 5:
++        if file_format == 5:
+             header = None
+         else:
+             if header_format is None:
+--- a/src/cgelib/alignment/blast/read_files.py
++++ b/src/cgelib/alignment/blast/read_files.py
+@@ -68,7 +68,7 @@ class BLASTN_Result(dict):
+         result_file = ResultFile(type=aln_file, file_path=file_path,
+                                  read_method=iterator_result)
+         if header is not None:
+-            if aln_file is "XML":
++            if aln_file == "XML":
+                 raise ValueError("No header can be defined when using an XML"
+                                  " file")
+             else:


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+python3_syntax.patch



View it on GitLab: https://salsa.debian.org/med-team/python-cgelib/-/commit/a9fa57b2711dc77004645136e401534495b7910d

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-cgelib/-/commit/a9fa57b2711dc77004645136e401534495b7910d
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/debian-med-commit/attachments/20230704/0fcf9bbc/attachment-0001.htm>


More information about the debian-med-commit mailing list