Skip to content

Import format changes based on line ending type #1566

Closed
@VakarisZ

Description

Import

from impacket.smb3structs import (
    SMB2_CREATE, SMB2_FLAGS_DFS_OPERATIONS, SMB2_IL_IMPERSONATION, SMB2_OPLOCK_LEVEL_NONE, SMB2Create,
    SMB2Create_Response, SMB2Packet)

checked with command python -m isort . -c -l 120 --wl 120 passes on dos line endings, but with unix line endings it fails because it expects

from impacket.smb3structs import (SMB2_CREATE, SMB2_FLAGS_DFS_OPERATIONS, SMB2_IL_IMPERSONATION, SMB2_OPLOCK_LEVEL_NONE,
                                  SMB2Create, SMB2Create_Response, SMB2Packet)

Visually, both line endings look the same, so I'd expect them to be treated the same (either as 1 or as 2 characters).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

        NODES
      COMMUNITY 1
      Project 5
      USERS 1