Ruby GTK3移行後のメインリポジトリ
リビジョン | e44fe56ab4dde3de2f16fd7746e3ea6a6acedff0 (tree) |
---|---|
日時 | 2015-05-25 21:08:33 |
作者 | Shyouzou Sugitani <shy@user...> |
コミッター | Shyouzou Sugitani |
assorted fixes(26)
@@ -32,15 +32,6 @@ module SSTP | ||
32 | 32 | @request_handler = nil |
33 | 33 | end |
34 | 34 | |
35 | -# def shutdown_request(request) | |
36 | -# if @request_handler != nil | |
37 | -# # XXX: send_* methods can be called from outside of the handler | |
38 | -# pass # keep alive | |
39 | -# else | |
40 | -# super(request) #AsynchronousSSTPServer.shutdown_request(self, request) | |
41 | -# end | |
42 | -# end | |
43 | - | |
44 | 35 | def set_responsible(parent) |
45 | 36 | @parent = parent |
46 | 37 | end |
@@ -67,10 +58,8 @@ module SSTP | ||
67 | 58 | begin |
68 | 59 | @request_handler.send_response(code) |
69 | 60 | if data != nil |
70 | -# @request_handler.wfile.write(data) | |
71 | 61 | @request_handler.write(data) # FIXME |
72 | 62 | end |
73 | -# @request_handler.force_finish() | |
74 | 63 | @request_handler.shutdown(Socket::SHUT_WR) # XXX |
75 | 64 | rescue #except IOError: |
76 | 65 | #pass |
@@ -116,16 +105,6 @@ module SSTP | ||
116 | 105 | end |
117 | 106 | end |
118 | 107 | |
119 | -# def force_finish | |
120 | -# BaseSSTPRequestHandler.finish(self) | |
121 | -# end | |
122 | - | |
123 | -# def finish | |
124 | -# if @server.request_handler == nil | |
125 | -# BaseSSTPRequestHandler.finish(self) | |
126 | -# end | |
127 | -# end | |
128 | - | |
129 | 108 | # SEND |
130 | 109 | def do_SEND_1_0 |
131 | 110 | handle_send(1.0) |
@@ -268,7 +247,7 @@ module SSTP | ||
268 | 247 | end |
269 | 248 | |
270 | 249 | def get_script_odict |
271 | - script_odict = {} #OrderedDict() | |
250 | + script_odict = {} # Ordered Hash | |
272 | 251 | if_ghost = nil |
273 | 252 | for item in @headers |
274 | 253 | name, value = item |
@@ -27,7 +27,6 @@ | ||
27 | 27 | #import importlib |
28 | 28 | #import locale |
29 | 29 | #import multiprocessing |
30 | -#from collections import OrderedDict | |
31 | 30 | |
32 | 31 | #if os.name == 'nt': # locale setting for windows |
33 | 32 | # lang = os.getenv('LANG') |
@@ -684,7 +683,7 @@ module Ninix_Main | ||
684 | 683 | @__menu = Menu::Menu.new |
685 | 684 | @__menu.set_responsible(self) |
686 | 685 | @__menu_owner = nil |
687 | - @ghosts = {} # OrderedDict | |
686 | + @ghosts = {} # Ordered Hash | |
688 | 687 | odict_baseinfo = Home.search_ghosts() |
689 | 688 | for key, value in odict_baseinfo |
690 | 689 | holon = Ghost.new(key) |
@@ -692,7 +691,7 @@ module Ninix_Main | ||
692 | 691 | @ghosts[key] = holon |
693 | 692 | holon.baseinfo = value |
694 | 693 | end |
695 | - @balloons = {} # OrderedDict | |
694 | + @balloons = {} # Ordered Hash | |
696 | 695 | odict_baseinfo = Home.search_balloons() |
697 | 696 | for key, value in odict_baseinfo |
698 | 697 | meme = BalloonMeme.new(key) |
@@ -1061,7 +1060,7 @@ module Ninix_Main | ||
1061 | 1060 | end |
1062 | 1061 | |
1063 | 1062 | def create_balloon_menu |
1064 | - balloon_menuitems = {} # OrderedDict() | |
1063 | + balloon_menuitems = {} # Ordered Hash | |
1065 | 1064 | for key in @balloons.keys |
1066 | 1065 | balloon_menuitems[key] = @balloons[key].menuitem |
1067 | 1066 | end |