aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-12-21 00:54:17 -0700
committerJordan <me@jordan.im>2021-12-21 00:54:17 -0700
commit916fa2986c4c840aed3103e3da9406b2d9aae507 (patch)
tree9b99e3730072bac5863038c7ccbe6206a188a7ad
parent8a5d1eb072535305eb9b1737d6001c78e089b72d (diff)
downloadallium-916fa2986c4c840aed3103e3da9406b2d9aae507.tar.gz
allium-916fa2986c4c840aed3103e3da9406b2d9aae507.zip
relays: use == w/ literals
-rw-r--r--allium/lib/relays.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/allium/lib/relays.py b/allium/lib/relays.py
index 6c28d88..70ada47 100644
--- a/allium/lib/relays.py
+++ b/allium/lib/relays.py
@@ -141,12 +141,12 @@ class Relays():
else:
self.json['sorted'][k][v]['middle_count'] += 1
- if k is 'as':
+ if k == 'as':
self.json['sorted'][k][v]['country'] = relay.get('country')
self.json['sorted'][k][v]['country_name'] = relay.get('country')
self.json['sorted'][k][v]['as_name'] = relay.get('as_name')
- if k is 'family':
+ if k == 'family':
self.json['sorted'][k][v]['contact'] = relay.get('contact')
self.json['sorted'][k][v]['contact_md5'] = relay.get('contact_md5')
@@ -258,7 +258,7 @@ class Relays():
for m_relay in i['relays']:
members.append(self.json['relays'][m_relay])
- if k is 'flag':
+ if k == 'flag':
dir_path = os.path.join(output_path, v.lower())
else:
dir_path = os.path.join(output_path, v)