From 2d3e545f3c7fc1c0e0ae2a78593199e4b76a04a6 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Mon, 3 Aug 2009 22:09:13 -0700 Subject: Namespace/module fixes diff --git a/FuseArchive/Storage/ZipFile.py b/FuseArchive/Storage/ZipFile.py index 755c2a4..83898ef 100644 --- a/FuseArchive/Storage/ZipFile.py +++ b/FuseArchive/Storage/ZipFile.py @@ -1,4 +1,4 @@ -import os, logging +import os, logging, FuseArchive, zipfile, sha from binascii import hexlify def save_chunk( chunk ): @@ -6,7 +6,7 @@ def save_chunk( chunk ): return( [ 0, 0 ] ) logging.debug( "Begin save_chunk, length: %d" % len( chunk ) ) - if deep_debug: + if FuseArchive.deep_debug: logging.debug( "Chunk: %s" + hexlify( chunk ) ) # Save this hash string, similar to the backuppc algo @@ -88,7 +88,7 @@ def load_chunk( key ): z.close() raise IOError - if deep_debug: + if FuseArchive.deep_debug: logging.debug( "Load-Chunk: %s" + hexlify( chunk ) ) z.close() -- cgit v0.10.2