Skip to content

Commit 2e371cf

Browse files
committedNov 19, 2020
correct style
1 parent ad2cee6 commit 2e371cf

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
 

‎otohttp/templates/client.py.plush

+6-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@
1919
# 4. Make real HTTP requests inside the methods, parsing all the
2020
# JSON.
2121

22-
import http.client
22+
import requests
2323

2424
<%= for (service) in def.Services { %>
25-
// service: <%= service.Name %>
25+
class <%= service.Name %>:
26+
'''<%= service.Comment %>'''
27+
pass
28+
2629
<%= for (method) in service.Methods { %>
2730
// method: <%= method.Name %>
2831
<% } %>
29-
<% } %>
32+
<% } %>

‎render/render.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func Render(template string, def parser.Definition, params map[string]interface{
2222
ctx.Set("def", def)
2323
ctx.Set("params", params)
2424
ctx.Set("json", toJSONHelper)
25-
ctx.Set("formatComment", formatComment)
25+
ctx.Set("format_comment", formatComment)
2626
ctx.Set("format_comment_text", formatCommentText)
2727
ctx.Set("format_comment_html", formatCommentHTML)
2828
ctx.Set("format_tags", formatTags)

0 commit comments

Comments
 (0)
Please sign in to comment.