From 3da120f1c656163c2b619e9c152bf9add8bc0cf9 Mon Sep 17 00:00:00 2001 From: luto Date: Sat, 14 Oct 2017 18:07:35 +0200 Subject: [PATCH] fix import order --- byro_shackspace/management/commands/import_shackbureau.py | 8 +++++--- setup.py | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/byro_shackspace/management/commands/import_shackbureau.py b/byro_shackspace/management/commands/import_shackbureau.py index 940d62e..f17a0ad 100644 --- a/byro_shackspace/management/commands/import_shackbureau.py +++ b/byro_shackspace/management/commands/import_shackbureau.py @@ -1,6 +1,5 @@ import json -from contextlib import suppress -from datetime import datetime, timedelta, time +from datetime import datetime, time, timedelta from decimal import Decimal import pytz @@ -8,7 +7,10 @@ from django.core.management.base import BaseCommand from django.db import transaction from django.utils.dateparse import parse_date -from byro.bookkeeping.models import TransactionChannel, RealTransaction, VirtualTransaction, Account, AccountCategory +from byro.bookkeeping.models import ( + Account, AccountCategory, RealTransaction, + TransactionChannel, VirtualTransaction, +) from byro.members.models import Member, Membership TIMEZONE = pytz.timezone('Europe/Berlin') diff --git a/setup.py b/setup.py index 1e459df..f2af2da 100644 --- a/setup.py +++ b/setup.py @@ -2,8 +2,7 @@ import os from distutils.command.build import build from django.core import management -from setuptools import setup, find_packages - +from setuptools import find_packages, setup try: with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f: @@ -42,4 +41,3 @@ setup( byro_shackspace=byro_shackspace:ByroPluginMeta """, ) -