Permalink
Browse files

flake8 cleanup

  • Loading branch information...
1 parent 3f2f008 commit d6decbbded3ae90d2dd865e3ef04f99cdd145717 Francis Reyes committed Aug 15, 2012
Showing with 4 additions and 7 deletions.
  1. +1 −1 paymentexpress/__init__.py
  2. +0 −1 paymentexpress/facade.py
  3. +0 −1 paymentexpress/gateway.py
  4. +1 −2 run_tests.py
  5. +2 −2 tests/facade_tests.py
@@ -1 +1 @@
-PAYMENTEXPRESS = 'PaymentExpress'
+PAYMENTEXPRESS = 'PaymentExpress'
View
@@ -4,7 +4,6 @@
)
from paymentexpress.models import OrderTransaction
-from oscar.apps.payment.utils import Bankcard
from oscar.apps.payment.exceptions import (UnableToTakePayment,
InvalidGatewayRequestError)
import random
@@ -1,5 +1,4 @@
from xml.dom.minidom import parseString, Document
-from xml.parsers.expat import ExpatError
import requests
import re
View
@@ -1,10 +1,9 @@
#!/usr/bin/env python
import sys
-import os
from coverage import coverage
from optparse import OptionParser
-from django.conf import settings, global_settings
+from django.conf import settings
if not settings.configured:
paymentexpress_settings = {}
View
@@ -2,7 +2,7 @@
from mock import Mock, patch
from paymentexpress.facade import Facade
-from paymentexpress.gateway import Response, AUTH, PURCHASE
+from paymentexpress.gateway import AUTH, PURCHASE
from paymentexpress.models import OrderTransaction
from tests import (XmlTestingMixin, CARD_VISA, SAMPLE_SUCCESSFUL_RESPONSE,
SAMPLE_DECLINED_RESPONSE, SAMPLE_ERROR_RESPONSE)
@@ -159,7 +159,7 @@ def test_declined_call_is_recorded(self):
SAMPLE_DECLINED_RESPONSE)
try:
self.facade.purchase('1001', 10.24, None, self.card)
- except Exception, e:
+ except Exception:
pass
txn = OrderTransaction.objects.filter(order_number='1001')[0]
self.assertIsNotNone(txn)

0 comments on commit d6decbb

Please sign in to comment.