[Heimdal-source-changes] [heimdal/heimdal] 8b8157: lib/wind: PY3 gen-punycode-examples.py

GitHub noreply at github.com
Ons Dec 26 18:22:48 CET 2018


  Branch: refs/heads/jaltman/more-py3-fixes
  Home:   https://github.com/heimdal/heimdal
  Commit: 8b8157868f5faa71df137d463f704c5f876adec6
      https://github.com/heimdal/heimdal/commit/8b8157868f5faa71df137d463f704c5f876adec6
  Author: Jeffrey Altman <jaltman at secure-endpoints.com>
  Date:   2018-12-26 (Wed, 26 Dec 2018)

  Changed paths:
    M lib/wind/gen-punycode-examples.py

  Log Message:
  -----------
  lib/wind: PY3 gen-punycode-examples.py

Update gen-punycode-examples.py for python 3.

gen-punycode-examples.py parses the Sample strings from section 7.1
of rfc3492.txt and generates the punycode_examples.[ch] sources containing
the punycode_examples[].

Python 3 requires that print output be surrounded by parentheses
and the split and join operations have been moved from the "string"
class to built-ins.

This change adds the missing parentheses and switches to the built-in
split and join str operations.

The "string" class is no longer required as an import.

Change-Id: Ic5f341080d2ff2feef692c89e0b28dcbf4e48cb4



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Heimdal-source-changes mailing list