view src/testdir/test_channel_6.py @ 27827:0a0ad6453e67 v8.2.4439

patch 8.2.4439: accepting "iso8859" 'encoding' as "iso-8859-" Commit: https://github.com/vim/vim/commit/1349bd712cf7d24dc65408c523dd7deb30224f80 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 22 12:34:28 2022 +0000 patch 8.2.4439: accepting "iso8859" 'encoding' as "iso-8859-" Problem: Accepting "iso8859" 'encoding' as "iso-8859-". Solution: use "iso8859" as "iso-8859-1".
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Feb 2022 13:45:03 +0100
parents e373843e2980
children
line wrap: on
line source

#!/usr/bin/env python
#
# Server that will accept connections from a Vim channel.
# Used by test_channel.vim.
#
# This requires Python 2.6 or later.

from test_channel import main, ThreadedTCPServer
import socket

class ThreadedTCP6Server(ThreadedTCPServer):
    address_family = socket.AF_INET6

if __name__ == "__main__":
    main("::", 0, ThreadedTCP6Server)