File: fix_python_syntax.patch

package info (click to toggle)
ont-fast5-api 4.1.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,576 kB
  • sloc: python: 3,806; makefile: 153; sh: 13
file content (15 lines) | stat: -rw-r--r-- 624 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: 2021-05-23
Description: Fix Python3 syntax

--- a/ont_fast5_api/analysis_tools/segmentation.py
+++ b/ont_fast5_api/analysis_tools/segmentation.py
@@ -89,7 +89,7 @@
             raise Exception('Unrecognized section: {} Expected: "template", "complement" or "both"'.format(section))
         results = self.get_results()
         if results is None:
-            return None, None if section is 'both' else None
+            return None, None if section == 'both' else None
         if section == 'both':
             sections = ['template', 'complement']
         else: