# Path: pgp/commands/gpg/sign_.py
# class SignCommand(MessageCommand):
# 
#     def __init__(self, io_helper, force_v3_sigs, force_v4_certs,
#                  signature_notations, certification_notations, notations,
#                  sig_policy_url, cert_policy_url, policy_url,
#                  preferred_keyserver, default_keyserver_url,
#                  message_filename, set_filesize, escape_from_lines,
#                  for_your_eyes_only):
#         MessageCommand.__init__(self, io_helper, message_filename,
#                                 set_filesize, escape_from_lines,
#                                 for_your_eyes_only)
#         self.force_v3_sigs = force_v3_sigs
#         self.force_v4_certs = force_v4_certs
#         self.signature_notations = signature_notations
#         self.certification_notations = certification_notations
#         self.notations = notations
#         self.sig_policy_url = sig_policy_url
#         self.cert_policy_url = cert_policy_url
#         self.policy_url = policy_url
#         self.preferred_keyserver = preferred_keyserver
# 
# Path: pgp/packets/constants.py
# SIGNATURE_OF_A_BINARY_DOCUMENT = 0x00


from pgp.commands.gpg.sign_ import SignCommand
from pgp.packets.constants import SIGNATURE_OF_A_BINARY_DOCUMENT


class Command(SignCommand):

    def __init__(self, formatter, io_helper, keyring_helper,
                 algorithm_helper, faked_system_time, force_v3_sigs,
                 force_v4_certs, signature_notations, certification_notations,
                 notations, sig_policy_url, cert_policy_url, policy_url,
                 preferred_keyserver, default_keyserver_url,
                 message_filename, set_filesize, escape_from_lines,
                 for_your_eyes_only):

        SignCommand.__init__(
            self, io_helper, force_v3_sigs, force_v4_certs,
            signature_notations, certification_notations, notations,
            sig_policy_url, cert_policy_url, policy_url,
            preferred_keyserver, default_keyserver_url, message_filename,
            set_filesize, escape_from_lines, for_your_eyes_only)
        self.formatter = formatter
        self.io_helper = io_helper
        self.keyring_helper = keyring_helper
        self.algorithm_helper = algorithm_helper
        self.faked_system_time = faked_system_time

    def sign_message(self, msg, signature_type=None, one_pass=True):
        if signature_type is None:

# Path: pgp/commands/gpg/sign_.py
# class SignCommand(MessageCommand):
# 
#     def __init__(self, io_helper, force_v3_sigs, force_v4_certs,
#                  signature_notations, certification_notations, notations,
#                  sig_policy_url, cert_policy_url, policy_url,
#                  preferred_keyserver, default_keyserver_url,
#                  message_filename, set_filesize, escape_from_lines,
#                  for_your_eyes_only):
#         MessageCommand.__init__(self, io_helper, message_filename,
#                                 set_filesize, escape_from_lines,
#                                 for_your_eyes_only)
#         self.force_v3_sigs = force_v3_sigs
#         self.force_v4_certs = force_v4_certs
#         self.signature_notations = signature_notations
#         self.certification_notations = certification_notations
#         self.notations = notations
#         self.sig_policy_url = sig_policy_url
#         self.cert_policy_url = cert_policy_url
#         self.policy_url = policy_url
#         self.preferred_keyserver = preferred_keyserver
# 
# Path: pgp/packets/constants.py
# SIGNATURE_OF_A_BINARY_DOCUMENT = 0x00


# Path: pgp/commands/gpg/sign.py
from pgp.commands.gpg.sign_ import SignCommand
from pgp.packets.constants import SIGNATURE_OF_A_BINARY_DOCUMENT



class Command(SignCommand):

    def __init__(self, formatter, io_helper, keyring_helper,
                 algorithm_helper, faked_system_time, force_v3_sigs,
                 force_v4_certs, signature_notations, certification_notations,
                 notations, sig_policy_url, cert_policy_url, policy_url,
                 preferred_keyserver, default_keyserver_url,
                 message_filename, set_filesize, escape_from_lines,
                 for_your_eyes_only):

        SignCommand.__init__(
            self, io_helper, force_v3_sigs, force_v4_certs,
            signature_notations, certification_notations, notations,
            sig_policy_url, cert_policy_url, policy_url,
            preferred_keyserver, default_keyserver_url, message_filename,
            set_filesize, escape_from_lines, for_your_eyes_only)
        self.formatter = formatter
        self.io_helper = io_helper
        self.keyring_helper = keyring_helper
        self.algorithm_helper = algorithm_helper
        self.faked_system_time = faked_system_time

    def sign_message(self, msg, signature_type=None, one_pass=True):
        if signature_type is None:

            signature_type = SIGNATURE_OF_A_BINARY_DOCUMENT