Changeset c10b5fb in rattail for rattail/db/model/batch/purchase.py


Ignore:
Timestamp:
02/12/18 14:55:15 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
e633899
Parents:
7147030
git-author:
Lance Edgar <lance@…> (02/12/18 13:12:43)
git-committer:
Lance Edgar <lance@…> (02/12/18 14:55:15)
Message:

Misc. cleanup for Python 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/db/model/batch/purchase.py

    r7147030 rc10b5fb  
    1 # -*- coding: utf-8 -*-
     1# -*- coding: utf-8; -*-
    22################################################################################
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2017 Lance Edgar
     5#  Copyright © 2010-2018 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    2727from __future__ import unicode_literals, absolute_import
    2828
     29import six
    2930import sqlalchemy as sa
    3031from sqlalchemy import orm
     
    120121
    121122
     123@six.python_2_unicode_compatible
    122124class PurchaseBatchCredit(PurchaseCreditBase, Base):
    123125    """
     
    147149            """))
    148150
    149     def __unicode__(self):
     151    def __str__(self):
    150152        if self.cases_shorted is not None and self.units_shorted is not None:
    151153            qty = "{} cases, {} units".format(
Note: See TracChangeset for help on using the changeset viewer.