Skip to content

Commit

Permalink
Prefer unicode_literals to the u prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Aug 14, 2018
1 parent 48740c6 commit eb7b3ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test_git_archive_all.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.')
})


Expand Down

0 comments on commit eb7b3ce

Please sign in to comment.