BSD Ports

devel/py-tokenize-rt 6.2.0 OpenBSD

round-tripping wrapper for Python stdlib's "tokenize"

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, lang/python

Description

The stdlib tokenize module does not properly roundtrip. This wrapper around the stdlib provides two additional tokens ESCAPED_NL and UNIMPORTANT_WS, and a Token data type. Use src_to_tokens and tokens_to_src to roundtrip.

This library is useful if you're writing a refactoring tool based on the Python tokenization.

In the other systems

SystemPortVersion
OpenBSDdevel/py-tokenize-rt6.2.0
FreeBSDdevel/py-tokenize-rt6.2.0
DragonFlydevel/py-tokenize-rt6.1.0_1
MidnightBSDdevel/py-tokenize-rt5.2.0_1
HardenedBSDdevel/py-tokenize-rt6.2.0
GhostBSDdevel/py-tokenize-rt6.2.0

Install

Binary package:

pkg_add py3-tokenize-rt

From the ports tree:

cd /usr/ports/devel/py-tokenize-rt && make install

Dependencies

Build dependencies 5
Run dependencies 1
Required by 1