aboutsummaryrefslogtreecommitdiff
path: root/scripts/maintenance/readProbeSetSE_v7.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-19 02:41:46 +0300
committerBonfaceKilz2020-08-19 02:41:46 +0300
commite55b1502340cc99cd8a5d705261a5ff3c87f3718 (patch)
tree8b38bf14565a74a58159553fbe947460f7ee218a /scripts/maintenance/readProbeSetSE_v7.py
parent28e75b1c96819eab1e8052a3045ece26e5f35c42 (diff)
downloadgenenetwork2-e55b1502340cc99cd8a5d705261a5ff3c87f3718.tar.gz
Change `dict.has_key(key)` to `key in dict`
Run `2to3-3.8 -f has_key -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-has_key>
Diffstat (limited to 'scripts/maintenance/readProbeSetSE_v7.py')
-rwxr-xr-xscripts/maintenance/readProbeSetSE_v7.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/maintenance/readProbeSetSE_v7.py b/scripts/maintenance/readProbeSetSE_v7.py
index 7b2fee87..2700a8ef 100755
--- a/scripts/maintenance/readProbeSetSE_v7.py
+++ b/scripts/maintenance/readProbeSetSE_v7.py
@@ -223,7 +223,7 @@ while line:
line2 = list(map(string.strip, line2))
CellId = line2[0]
- if not ProbeNameId.has_key(CellId):
+ if CellId not in ProbeNameId:
ferror.write(CellId + " doesn't exist\n")
else:
DataId = ProbeNameId[CellId]