Changeset 9e2a79ee in trunk
- Timestamp:
- 2020-11-11T19:45:20Z (5 years ago)
- Branches:
- master
- Children:
- 252f35a2, dc611bf
- Parents:
- d0d7a827
- Location:
- src/allmydata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/mutable/publish.py ¶
rd0d7a827 r9e2a79ee 1 """ 2 Ported to Python 3. 3 """ 4 from __future__ import division 5 from __future__ import absolute_import 6 from __future__ import print_function 7 from __future__ import unicode_literals 8 9 from future.utils import PY2 10 if 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 1 13 import os, time 2 14 from io import BytesIO … … 447 459 # then we add in all the shares that were bad (corrupted, bad 448 460 # 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()): 450 462 (server, shnum) = key 451 463 self.goal.add( (server,shnum) ) … … 1106 1118 # use the checkstring to add information to the log message 1107 1119 unknown_format = False 1108 for (shnum,readv) in read_data.items():1120 for (shnum,readv) in list(read_data.items()): 1109 1121 checkstring = readv[0] 1110 1122 version = get_version_from_checkstring(checkstring) -
TabularUnified src/allmydata/util/_python3.py ¶
rd0d7a827 r9e2a79ee 57 57 "allmydata.mutable.common", 58 58 "allmydata.mutable.filenode", 59 "allmydata.mutable.publish", 59 60 "allmydata.node", 60 61 "allmydata.storage_client",
Note: See TracChangeset
for help on using the changeset viewer.