From c8cc054c8bbd94d73650935ec02c897385218c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 3 Dec 2015 11:16:27 +0100 Subject: [PATCH] Fix tests --- fdroidserver/metadata.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index 53c327cf..ff2de01a 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -796,7 +796,7 @@ def sorted_builds(builds): return sorted(builds, key=lambda build: int(build.vercode)) -esc_newlines = re.compile('\\\\( |\\n)') +esc_newlines = re.compile(r'\\( |\n)') # This function uses __dict__ to be faster @@ -804,15 +804,14 @@ def post_metadata_parse(app): for k, v in app.__dict__.iteritems(): if type(v) in (float, int): - app.__dict__[f] = str(v) + app.__dict__[k] = str(v) for build in app.builds: - for k, v in app.__dict__.iteritems(): + for k, v in build.__dict__.iteritems(): if type(v) in (float, int): build.__dict__[k] = str(v) continue - ftype = flagtype(k) if ftype == 'script':