Skip to content

Commit 4187f26

Browse files
committed
removed uneeded ascii encoding and further pep 8 convention
1 parent 1b69496 commit 4187f26

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

app.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,16 @@
1111

1212

1313
class APP(Resource):
14-
1514
def get(self):
1615
return {'this is soon to become an awesome->': 'website'}
1716

18-
1917
def post(self):
20-
jk = joke.getJoke()
21-
jk = jk.encode('ascii', 'ignore').decode('ascii')
22-
#jk = jk.encode('utf-8')
23-
return jk
18+
return joke.getJoke()
2419

2520

2621
class API(Resource):
27-
2822
def get(self):
29-
jk = joke.getJoke()
30-
jk = jk.encode('ascii', 'ignore').decode('ascii')
31-
# jk = jk.encode('utf-8')
32-
return jk
23+
return joke.getJoke()
3324

3425

3526
api.add_resource(APP, '/')

0 commit comments

Comments
 (0)