fix copy imports

This commit is contained in:
Michel Oosterhof
2014-11-09 17:33:29 +04:00
parent 658de4b657
commit d3bfeca331
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import twisted
import os import os
import shlex import shlex
import re import re
import copy.copy import copy
from twisted.python import log from twisted.python import log
from kippo.core import fs from kippo.core import fs

View File

@ -5,7 +5,7 @@ import os
import random import random
import time import time
import struct import struct
import copy.copy import copy
from twisted.conch import recvline from twisted.conch import recvline
from twisted.conch.ssh import transport from twisted.conch.ssh import transport
@ -30,7 +30,7 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol):
else: else:
self.cwd = '/' self.cwd = '/'
# commands is also a copy so we can add stuff on the fly # commands is also a copy so we can add stuff on the fly
self.commands = copy(self.env.commands) self.commands = copy.copy(self.env.commands)
self.password_input = False self.password_input = False
self.cmdstack = [] self.cmdstack = []

View File

@ -5,7 +5,7 @@ import os
import copy import copy
import time import time
import uuid import uuid
import copy.deepcopy import copy
from zope.interface import implementer from zope.interface import implementer