view src/testdir/test_channel_6.py @ 23827:7e0d8f1cae7d v8.2.2455

patch 8.2.2455: Vim9: key type for literal dict and indexing is inconsistent Commit: https://github.com/vim/vim/commit/2e5910bfbb05957c10c9c69756dfa342557e9a8b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 3 17:41:24 2021 +0100 patch 8.2.2455: Vim9: key type for literal dict and indexing is inconsistent Problem: Vim9: key type that can be used for literal dict and indexing is inconsistent. Solution: Allow using number and bool as key for a literal dict. (#7771)
author Bram Moolenaar <Bram@vim.org>
date Wed, 03 Feb 2021 17:45:06 +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)