diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 5acf7405..46baf560 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -247,9 +247,9 @@ def read_config(opts, config_file='config.py'): config[k] = clean_description(config[k]) if 'serverwebroot' in config: - if isinstance(config['serverwebroot'], basestring): + if isinstance(config['serverwebroot'], str): roots = [config['serverwebroot']] - elif all(isinstance(item, basestring) for item in config['serverwebroot']): + elif all(isinstance(item, str) for item in config['serverwebroot']): roots = config['serverwebroot'] else: raise TypeError('only accepts strings, lists, and tuples') diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index bf1d4dc4..4d73671b 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -862,7 +862,7 @@ def post_metadata_parse(app): build.__dict__[k] = re.sub(esc_newlines, '', v).lstrip().rstrip() elif ftype == TYPE_BOOL: # TODO handle this using