Skip to content

Commit f2b3d55

Browse files
authored
Merge pull request #26 from tirkarthi/fix-warnings
Fix warnings in Python 3.9
2 parents b852c63 + caff4e4 commit f2b3d55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyclowder/connectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ def start_thread(self, json_body):
884884

885885
def is_finished(self):
886886
with self.lock:
887-
return self.thread and not self.thread.isAlive() and self.finished and len(self.messages) == 0
887+
return self.thread and not self.thread.is_alive() and self.finished and len(self.messages) == 0
888888

889889
def process_messages(self, channel, rabbitmq_queue):
890890
while self.messages:

pyclowder/extractors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def start(self):
143143
for key, value in self.extractor_info['process'].items():
144144
for mt in value:
145145
# Replace trailing '*' with '#'
146-
mt = re.sub('(\*$)', '#', mt)
146+
mt = re.sub(r'(\*$)', '#', mt)
147147
if mt.find('*') > -1:
148148
logger.error("Invalid '*' found in rabbitmq_key: %s" % mt)
149149
else:

0 commit comments

Comments
 (0)