Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import smbc
from debug import *
class _None(RuntimeError):
pass
try:
NoEntryError = smbc.NoEntryError
PermissionError = smbc.PermissionError
ExistsError = smbc.ExistsError
NotEmptyError = smbc.NotEmptyError
TimedOutError = smbc.TimedOutError
NoSpaceError = smbc.NoSpaceError
except AttributeError:
NoEntryError = PermissionError = ExistsError = _None
NotEmptyError = TimedOutError = NoSpaceError = _None
class AuthContext:
def __init__ (self, parent=None, workgroup='', user='', passwd=''):
self.passes = 0
self.has_failed = False
self.auth_called = False
self.tried_guest = False
self.cancel = False
self.use_user = user
self.use_password = passwd
self.use_workgroup = workgroup
self.dialog_shown = False
self.parent = parent
def perform_authentication (self):
self.passes += 1
import pwd
import smbc
from debug import *
class _None(RuntimeError):
pass
try:
NoEntryError = smbc.NoEntryError
PermissionError = smbc.PermissionError
ExistsError = smbc.ExistsError
NotEmptyError = smbc.NotEmptyError
TimedOutError = smbc.TimedOutError
NoSpaceError = smbc.NoSpaceError
except AttributeError:
NoEntryError = PermissionError = ExistsError = _None
NotEmptyError = TimedOutError = NoSpaceError = _None
class AuthContext:
def __init__ (self, parent=None, workgroup='', user='', passwd=''):
self.passes = 0
self.has_failed = False
self.auth_called = False
self.tried_guest = False
self.cancel = False
self.use_user = user
self.use_password = passwd
self.use_workgroup = workgroup
self.dialog_shown = False
self.parent = parent
def perform_authentication (self):