Changeset 9e2a79ee in trunk


Ignore:
Timestamp:
2020-11-11T19:45:20Z (5 years ago)
Author:
Itamar Turner-Trauring <itamar@…>
Branches:
master
Children:
252f35a2, dc611bf
Parents:
d0d7a827
Message:

Ported to Python 3.

Location:
src/allmydata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/mutable/publish.py

    rd0d7a827 r9e2a79ee  
     1"""
     2Ported to Python 3.
     3"""
     4from __future__ import division
     5from __future__ import absolute_import
     6from __future__ import print_function
     7from __future__ import unicode_literals
     8
     9from future.utils import PY2
     10if PY2:
     11    from future.builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min  # noqa: F401
     12
    113import os, time
    214from io import BytesIO
     
    447459        # then we add in all the shares that were bad (corrupted, bad
    448460        # signatures, etc). We want to replace these.
    449         for key, old_checkstring in self._servermap.get_bad_shares().items():
     461        for key, old_checkstring in list(self._servermap.get_bad_shares().items()):
    450462            (server, shnum) = key
    451463            self.goal.add( (server,shnum) )
     
    11061118            # use the checkstring to add information to the log message
    11071119            unknown_format = False
    1108             for (shnum,readv) in read_data.items():
     1120            for (shnum,readv) in list(read_data.items()):
    11091121                checkstring = readv[0]
    11101122                version = get_version_from_checkstring(checkstring)
  • TabularUnified src/allmydata/util/_python3.py

    rd0d7a827 r9e2a79ee  
    5757    "allmydata.mutable.common",
    5858    "allmydata.mutable.filenode",
     59    "allmydata.mutable.publish",
    5960    "allmydata.node",
    6061    "allmydata.storage_client",
Note: See TracChangeset for help on using the changeset viewer.