Commit 6bb0eb49 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

dbtables: remove compatibility working copy functions

- complete the transition to the context manager based working copy management code.
parent b05f1c69
Pipeline #197409 passed with stages
in 13 minutes and 2 seconds
......@@ -364,36 +364,6 @@ class workingcopy(object):
# backwards compatibility for old code. FIXME: delete in next release
def get_connection_filename(*args, **kwargs):
return workingcopy(*args, **kwargs).__enter__()
def put_connection_filename(ignored, target, verbose = False):
target.verbose = verbose
target.__exit__(None, None, None)
def discard_connection_filename(ignored, target, verbose = False):
target.discard = True
target.verbose = verbose
target.__exit__(None, None, None)
def set_temp_store_directory(connection, temp_store_directory, verbose = False):
if temp_store_directory == "_CONDOR_SCRATCH_DIR":
temp_store_directory = os.getenv("_CONDOR_SCRATCH_DIR")
if verbose:
sys.stderr.write("setting the temp_store_directory to %s ... " % temp_store_directory)
cursor = connection.cursor()
cursor.execute("PRAGMA temp_store_directory = '%s'" % temp_store_directory)
if verbose:
# =============================================================================
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment