Skip to content

Commit

Permalink
restyled
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp committed Jan 10, 2023
1 parent dd79206 commit cff8156
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/setup_payload/python/generate_setup_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys
import enum
import argparse
import enum
import sys

import Base38
from bitarray import bitarray
from bitarray.util import ba2int
from stdnum.verhoeff import calc_check_digit
import Base38

# See section 5.1.4.1 Manual Pairing Code in the Matter specification v1.0
MANUAL_DISCRIMINATOR_LEN = 4
Expand Down
6 changes: 3 additions & 3 deletions src/setup_payload/tests/run_python_setup_payload_gen_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
# limitations under the License.

import os
import re
import sys
import random
import re
import subprocess
import sys

CHIP_TOPDIR = os.path.dirname(os.path.realpath(__file__))[:-len(os.path.join('src', 'setup_payload', 'tests'))]
sys.path.insert(0, os.path.join(CHIP_TOPDIR, 'src', 'setup_payload', 'python'))
from generate_setup_payload import SetupPayload, CommissioningFlow, INVALID_PASSCODES # noqa: E402
from generate_setup_payload import INVALID_PASSCODES, CommissioningFlow, SetupPayload # noqa: E402


def payload_param_dict():
Expand Down

0 comments on commit cff8156

Please sign in to comment.