HomeFreeBSD

pyzfs: python3 support (library 1/2)

Description

pyzfs: python3 support (library 1/2)

These changes are efficient and valid in python 2 and 3. For the
most part, they are also pythonic.

  • 2to3 conversion
  • add future imports
  • iterator changes
  • integer division
  • relative import fixes

Reviewed-by: John Ramsden <johnramsden@riseup.net>
Reviewed-by: Neal Gompa <ngompa@datto.com>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #8096

Details

Provenance
Antonio Russo <antonio.e.russo@gmail.com>Authored on Aug 22 2018, 10:59 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 6 2019, 6:39 PM
Parents
rG0b8e4418b615: Add zfs module feature and property compatibility
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG9de8c0cd7f02: pyzfs: python3 support (library 1/2) (authored by Antonio Russo <antonio.e.russo@gmail.com>).Jan 6 2019, 6:39 PM