[PATCH 05 of 10 logilab-database] [fix] badly named variable

Laurent Peuch cortex at worlddomination.be
Fri Apr 3 09:14:13 CEST 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1585790415 -7200
#      Thu Apr 02 03:20:15 2020 +0200
# Node ID ecc36a45fb84b3ed5629003d5a748d04e24a327f
# Parent  19be3fc5f7481d111f1f162443d70df2c31282c7
# Available At https://hg.logilab.org/users/lpeuch/logilab-database
#              hg pull https://hg.logilab.org/users/lpeuch/logilab-database -r ecc36a45fb84
# EXP-Topic good-practice-modernisation
[fix] badly named variable

diff --git a/logilab/database/sqlserver.py b/logilab/database/sqlserver.py
--- a/logilab/database/sqlserver.py
+++ b/logilab/database/sqlserver.py
@@ -207,7 +207,7 @@ class _BaseSqlServerAdapter(db.DBAPIAdap
             transform = lambda v: str(v, encoding, "replace")
         elif typecode == self.BINARY:  # value is a python buffer
             if binarywrap is None:
-                transforn = lambda v: v[:]
+                transform = lambda v: v[:]
             else:
                 transform = lambda v: binarywrap(v[:])
         elif typecode == self.UNKNOWN:



More information about the cubicweb-devel mailing list