diff --git a/qiita_client/plugin.py b/qiita_client/plugin.py index a674eb8..6c6cd27 100644 --- a/qiita_client/plugin.py +++ b/qiita_client/plugin.py @@ -240,7 +240,7 @@ def __call__(self, server_url, job_id, output_dir): logger.debug('Entered BaseQiitaPlugin.__call__()') # Set up the Qiita Client config = ConfigParser() - with open(self.conf_fp, 'U') as conf_file: + with open(self.conf_fp, 'r') as conf_file: config.readfp(conf_file) qclient = QiitaClient(server_url, config.get('oauth2', 'CLIENT_ID'), diff --git a/qiita_client/qiita_client.py b/qiita_client/qiita_client.py index 881cf5a..f16e1d3 100644 --- a/qiita_client/qiita_client.py +++ b/qiita_client/qiita_client.py @@ -57,7 +57,7 @@ def __init__(self, output_name, artifact_type, files, archive=None): def __eq__(self, other): logger.debug('Entered ArtifactInfo.__eq__()') - if type(self) != type(other): + if not isinstance(other, ArtifactInfo): return False if self.output_name != other.output_name or \ self.artifact_type != other.artifact_type or \