summaryrefslogtreecommitdiff
path: root/git/test/test_commit.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-25 11:04:34 -0600
committerHarmon <Harmon758@gmail.com>2020-02-25 11:04:34 -0600
commitd39bd5345af82e3acbdc1ecb348951b05a5ed1f6 (patch)
treedfccb83bafd000d0704d473e1090a4158da136f9 /git/test/test_commit.py
parentac286162b577c35ce855a3048c82808b30b217a8 (diff)
downloadgitpython-d39bd5345af82e3acbdc1ecb348951b05a5ed1f6.tar.gz
Remove now unnecessary explicit Unicode string literal prefixes
Diffstat (limited to 'git/test/test_commit.py')
-rw-r--r--git/test/test_commit.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/git/test/test_commit.py b/git/test/test_commit.py
index 0e94bcb6..2b901e8b 100644
--- a/git/test/test_commit.py
+++ b/git/test/test_commit.py
@@ -132,9 +132,9 @@ class TestCommit(TestCommitSerialization):
def test_unicode_actor(self):
# assure we can parse unicode actors correctly
- name = u"Üäöß ÄußÉ"
+ name = "Üäöß ÄußÉ"
self.assertEqual(len(name), 9)
- special = Actor._from_string(u"%s <something@this.com>" % name)
+ special = Actor._from_string("%s <something@this.com>" % name)
self.assertEqual(special.name, name)
assert isinstance(special.name, str)
@@ -283,10 +283,10 @@ class TestCommit(TestCommitSerialization):
assert isinstance(cmt.message, str) # it automatically decodes it as such
assert isinstance(cmt.author.name, str) # same here
- cmt.message = u"üäêèß"
+ cmt.message = "üäêèß"
self.assertEqual(len(cmt.message), 5)
- cmt.author.name = u"äüß"
+ cmt.author.name = "äüß"
self.assertEqual(len(cmt.author.name), 3)
cstream = BytesIO()
@@ -308,7 +308,7 @@ class TestCommit(TestCommitSerialization):
with open(fixture_path('commit_invalid_data'), 'rb') as fd:
cmt._deserialize(fd)
- self.assertEqual(cmt.author.name, u'E.Azer Ko�o�o�oculu', cmt.author.name)
+ self.assertEqual(cmt.author.name, 'E.Azer Ko�o�o�oculu', cmt.author.name)
self.assertEqual(cmt.author.email, 'azer@kodfabrik.com', cmt.author.email)
def test_gpgsig(self):