From eb7b3ceb4b859ac62d0471ddb5f8cc1a9c749e71 Mon Sep 17 00:00:00 2001 From: Ilya Kulakov Date: Mon, 13 Aug 2018 20:58:19 -0700 Subject: [PATCH] Prefer unicode_literals to the u prefix. --- test_git_archive_all.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test_git_archive_all.py b/test_git_archive_all.py index 7bb5c60..7c99058 100644 --- a/test_git_archive_all.py +++ b/test_git_archive_all.py @@ -1,5 +1,8 @@ # -*- coding: utf-8 -*- +from __future__ import print_function +from __future__ import unicode_literals + from copy import deepcopy import errno from functools import partial @@ -186,13 +189,13 @@ def archive(self, path): unicode_base = deepcopy(base) unicode_base['data'] = DirRecord({ - u'مرحبا بالعالم.dat': FileRecord('Special cases aren\'t special enough to break the rules.') + 'مرحبا بالعالم.dat': FileRecord('Special cases aren\'t special enough to break the rules.') }) unicode_quoted = deepcopy(base) unicode_quoted['data'] = DirRecord({ - u'\"مرحبا بالعالم.dat\"': FileRecord('Special cases aren\'t special enough to break the rules.'), - u'\'привет мир.dat\'': FileRecord('Although practicality beats purity.') + '\"مرحبا بالعالم.dat\"': FileRecord('Special cases aren\'t special enough to break the rules.'), + '\'привет мир.dat\'': FileRecord('Although practicality beats purity.') })