Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from ministryofjustice/py2
Browse files Browse the repository at this point in the history
Make compatible with python 2 and fix documentation
  • Loading branch information
ibrechin committed Feb 15, 2016
2 parents ff66390 + 2cc182a commit ec327b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Ministry of Justice
Copyright (C) 2016 HM Government (Ministry of Justice Digital Services)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Installation

.. code-block:: bash
pip install git+https://github.com/ministryofjustice/django-form-error-reporting.git
pip install django-form-error-reporting
Usage
-----
Expand All @@ -17,7 +17,7 @@ See examples in tests/forms.py

.. code-block:: python
class ReportedForm(GoogleAnalyticsErrorReportingMixin, Form):
class ReportedForm(GAErrorReportingMixin, Form):
ga_tracking_id = 'UA-12345678-0'
...
Expand Down
3 changes: 2 additions & 1 deletion form_error_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def separate_groups(_group):

for _hits in paginate(_hits):
_hits = list(filter(limit_8kb, _hits))
yield from separate_groups(_hits)
for _hit_group in separate_groups(_hits):
yield _hit_group

hits = []
responses = []
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='django-form-error-reporting',
version='0.2',
version='0.3',
author='Ministry of Justice Digital Services',
url='https://github.com/ministryofjustice/django-form-error-reporting',
py_modules=['form_error_reporting'],
Expand Down

0 comments on commit ec327b5

Please sign in to comment.