Skip to content

Commit 261c3cb

Browse files
committed
Removed superfluous str() function around hashes
1 parent 0ba8152 commit 261c3cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def testrepos(mbed, request):
170170
hash = pquery(['git', 'rev-parse', 'HEAD'])
171171
elif scm() == 'hg':
172172
hash = pquery(['hg', 'id', '-i'])
173-
f.write(test4 + '/#' + str(hash) + '\n')
173+
f.write(test4 + '/#' + hash + '\n')
174174

175175
if scm() == 'git':
176176
popen(['git', 'add', 'test4.lib'])
@@ -188,7 +188,7 @@ def testrepos(mbed, request):
188188
hash = pquery(['git', 'rev-parse', 'HEAD'])
189189
elif scm() == 'hg':
190190
hash = pquery(['hg', 'id', '-i'])
191-
f.write(test3 + '/#' + str(hash) + '\n')
191+
f.write(test3 + '/#' + hash + '\n')
192192

193193
if scm() == 'git':
194194
popen(['git', 'add', 'test3.lib'])
@@ -206,7 +206,7 @@ def testrepos(mbed, request):
206206
hash = pquery(['git', 'rev-parse', 'HEAD'])
207207
elif scm() == 'hg':
208208
hash = pquery(['hg', 'id', '-i'])
209-
f.write(test2 + '/#' + str(hash) + '\n')
209+
f.write(test2 + '/#' + hash + '\n')
210210

211211
if scm() == 'git':
212212
popen(['git', 'add', 'test2.lib'])

0 commit comments

Comments
 (0)