Skip to content

Commit

Permalink
use copy rather than deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Jun 18, 2024
1 parent ee88655 commit d11d964
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions splink/input_column.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from copy import deepcopy
from copy import copy
from dataclasses import dataclass, replace

import sqlglot
Expand Down Expand Up @@ -216,20 +216,20 @@ def _tf_prefix(self):
)

def unquote(self) -> InputColumn:
self_copy = deepcopy(self)
self_copy = copy(self)
b = replace(self_copy.col_builder, quoted=False)
self_copy.col_builder = b
return self_copy

def quote(self) -> InputColumn:
self_copy = deepcopy(self)
self_copy = copy(self)
b = replace(self_copy.col_builder, quoted=True)
self_copy.col_builder = b
return self_copy

@property
def as_base_dialect(self) -> InputColumn:
input_column_copy = deepcopy(self)
input_column_copy = copy(self)
input_column_copy.sql_dialect = None
return input_column_copy

Expand Down

0 comments on commit d11d964

Please sign in to comment.