File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change
1
+ .PHONY : test
1
2
test :
2
3
coverage run tests.py
3
4
5
+ .PHONY : verify
4
6
verify :
5
7
pyflakes smartfile
6
8
pep8 --ignore=E501,E225 smartfile
7
9
10
+ .PHONY : install
8
11
install :
9
12
python setup.py install
10
13
14
+ .PHONY : publish
11
15
publish :
12
16
python setup.py register
13
17
python setup.py sdist upload
14
18
19
+ .PHONY : profile
15
20
profile :
16
21
python profile.py
17
22
23
+ .PHONY : clean
18
24
clean :
19
25
find . -name * .pyc -delete
20
26
27
+ .PHONY : distclean
21
28
distclean : clean
22
29
rm -rf env
23
30
Original file line number Diff line number Diff line change @@ -303,8 +303,9 @@ def test_netrc(self):
303
303
address , port = address
304
304
else :
305
305
port = self .server .server_port
306
- netrc = b" machine 127.0.0.1:%s \n login %s\n password %s" % (
306
+ netrc = ' machine 127.0.0.1:%i \n login %s\n password %s' % (
307
307
port , API_KEY , API_PASSWORD )
308
+ netrc = netrc .encode ('utf8' )
308
309
os .write (fd , netrc )
309
310
finally :
310
311
os .close (fd )
@@ -359,7 +360,7 @@ def respond(self, request):
359
360
self .send_response (200 )
360
361
self .send_header ("Content-Type" , "application/json" )
361
362
self .end_headers ()
362
- self .wfile .write (b"%s" % ( json .dumps ({'foo' : 'bar' }), ))
363
+ self .wfile .write (json .dumps ({'foo' : 'bar' }). encode ( 'utf8' ))
363
364
364
365
365
366
class JSONTestCase (object ):
You can’t perform that action at this time.
0 commit comments