mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 16:35:04 +01:00
21 lines
535 B
Python
21 lines
535 B
Python
"""Config functions"""
|
|
#
|
|
# Copyright (C) PyZMQ Developers
|
|
#
|
|
# This file is part of pyzmq, copied and adapted from h5py.
|
|
# h5py source used under the New BSD license
|
|
#
|
|
# h5py: <http://code.google.com/p/h5py/>
|
|
#
|
|
# Distributed under the terms of the New BSD License. The full license is in
|
|
# the file COPYING.BSD, distributed as part of this software.
|
|
#
|
|
|
|
#
|
|
# Utility functions (adapted from h5py: http://h5py.googlecode.com)
|
|
#
|
|
|
|
|
|
def v_str(v_tuple):
|
|
"""turn (2,0,1) into '2.0.1'."""
|
|
return ".".join(str(x) for x in v_tuple)
|