121 def feed_child(self, resolved_cmdline):
122 if (Vte.MAJOR_VERSION, Vte.MINOR_VERSION) >= (0, 42):
123 encoded = resolved_cmdline.encode("utf-8")
124 try:
125 super().feed_child_binary(encoded)
126 except TypeError:
127 # The doc doest not say clearly at which version the feed_child* function has lost
128 # the "len" parameter :(
129 super().feed_child(resolved_cmdline, len(resolved_cmdline))
130 else:
131 super().feed_child(resolved_cmdline, len(resolved_cmdline))
And here is how guake deals with this:
121 def feed_child(self, resolved_cmdline): cmdline. encode( "utf-8" ) .feed_child_ binary( encoded) .feed_child( resolved_ cmdline, len(resolved_ cmdline) ) .feed_child( resolved_ cmdline, len(resolved_ cmdline) )
122 if (Vte.MAJOR_VERSION, Vte.MINOR_VERSION) >= (0, 42):
123 encoded = resolved_
124 try:
125 super()
126 except TypeError:
127 # The doc doest not say clearly at which version the feed_child* function has lost
128 # the "len" parameter :(
129 super()
130 else:
131 super()