Changeset dffcdf2 in trunk


Ignore:
Timestamp:
2022-04-11T19:05:32Z (3 years ago)
Author:
Jean-Paul Calderone <exarkun@…>
Branches:
master
Children:
bc6dafa
Parents:
f19bf8cf
Message:

Clean up the Py2/Py3 boilerplate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/cli/test_invite.py

    rf19bf8cf rdffcdf2  
    11"""
    2 Ported to Pythn 3.
     2Tests for ``tahoe invite``.
    33"""
    4 from __future__ import absolute_import
    5 from __future__ import division
    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
    124
    135import os
     
    157import json
    168from os.path import join
    17 
    18 try:
    19     from typing import Optional, Sequence
    20 except ImportError:
    21     pass
     9from typing import Optional, Sequence
    2210
    2311from twisted.trial import unittest
Note: See TracChangeset for help on using the changeset viewer.