From 5ba60fb58fc20f2275f7b74e8f6233c627f06074 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Thu, 3 Nov 2022 20:18:59 +0100 Subject: [PATCH] Auto-fix whitespace issues --- .bumpversion.cfg | 1 - README.rst | 2 +- docs/conf.py | 1 + docs/index.rst | 1 - docs/installation.rst | 4 ++-- docs/reference.rst | 2 +- docs/release-notes.rst | 4 ++-- user_sessions/locale/ar/LC_MESSAGES/django.po | 2 +- user_sessions/locale/de/LC_MESSAGES/django.po | 2 +- user_sessions/locale/he/LC_MESSAGES/django.po | 2 +- user_sessions/locale/it/LC_MESSAGES/django.po | 2 +- user_sessions/locale/nl/LC_MESSAGES/django.po | 2 +- user_sessions/locale/pl_PL/LC_MESSAGES/django.po | 2 +- user_sessions/locale/zh_CN/LC_MESSAGES/django.po | 2 +- user_sessions/migrations/0002_auto_20151208_1536.py | 1 + 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 9334416..8ced386 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -3,4 +3,3 @@ current_version = 1.7.1 commit = True tag = True tag_name = {new_version} - diff --git a/README.rst b/README.rst index 3a127c2..eb211b1 100644 --- a/README.rst +++ b/README.rst @@ -75,7 +75,7 @@ documentation on `installing GeoIP`_. Getting help ============ -For general questions regarding this package, please hop over to Stack +For general questions regarding this package, please hop over to Stack Overflow. If you think there is an issue with this package; check if the issue is already listed (either open or closed), and file an issue if it's not. diff --git a/docs/conf.py b/docs/conf.py index d3d6426..c7708b0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,6 +12,7 @@ # serve to show the default. import os + from pkg_resources import get_distribution # If extensions (or modules to document with autodoc) are in another directory, diff --git a/docs/index.rst b/docs/index.rst index db03db8..6affa15 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -23,4 +23,3 @@ Indices and tables * :ref:`genindex` * :ref:`modindex` * :ref:`search` - diff --git a/docs/installation.rst b/docs/installation.rst index 7179dfe..48b9725 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -32,8 +32,8 @@ documentation on `installing GeoIP`_. IP when behind a proxy ---------------------- -If you're running Django behind a proxy like nginx, you will have to set -the `REMOTE_ADDR` META header manually using a middleware, to stop it from +If you're running Django behind a proxy like nginx, you will have to set +the `REMOTE_ADDR` META header manually using a middleware, to stop it from always returning the ip of the proxy (e.g. 127.0.0.1 in many cases). An example middleware to fix this issue is `django-xforwardedfor-middleware`_ diff --git a/docs/reference.rst b/docs/reference.rst index 86bfe8d..420a3d2 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -25,4 +25,4 @@ Views Unit tests ---------- -.. autoclass:: user_sessions.utils.tests.Client \ No newline at end of file +.. autoclass:: user_sessions.utils.tests.Client diff --git a/docs/release-notes.rst b/docs/release-notes.rst index 2774767..41e0df6 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -41,7 +41,7 @@ Unreleased * Fixed #73 -- Error when deleting individual session from list view. * Fixed #74 -- user agent not being shown in list view. * Resolved Django’s deprecation warnings (preliminary Django 2.0 support). -* Make templatetags return None instead of 'unknown', provide your own fallback +* Make templatetags return None instead of 'unknown', provide your own fallback value with `default_if_none:`. * Allow translation of fallback values. @@ -49,7 +49,7 @@ Unreleased ----- * Added Django Channels support. * Fixed #62 -- Provide request.user in signals. -* Ending current session will logout instead, make sure LOGOUT_REDIRECT_URL is +* Ending current session will logout instead, make sure LOGOUT_REDIRECT_URL is set. 1.3.1 diff --git a/user_sessions/locale/ar/LC_MESSAGES/django.po b/user_sessions/locale/ar/LC_MESSAGES/django.po index de19d13..bdcbe1a 100644 --- a/user_sessions/locale/ar/LC_MESSAGES/django.po +++ b/user_sessions/locale/ar/LC_MESSAGES/django.po @@ -1,7 +1,7 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# +# # Translators: # Bashar Al-Abdulhadi, 2013-2014 msgid "" diff --git a/user_sessions/locale/de/LC_MESSAGES/django.po b/user_sessions/locale/de/LC_MESSAGES/django.po index ab60d3a..3831c82 100644 --- a/user_sessions/locale/de/LC_MESSAGES/django.po +++ b/user_sessions/locale/de/LC_MESSAGES/django.po @@ -1,7 +1,7 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# +# # Translators: # Bouke Haarsma , 2017 # elnappo , 2014 diff --git a/user_sessions/locale/he/LC_MESSAGES/django.po b/user_sessions/locale/he/LC_MESSAGES/django.po index 8041a80..f328c0d 100644 --- a/user_sessions/locale/he/LC_MESSAGES/django.po +++ b/user_sessions/locale/he/LC_MESSAGES/django.po @@ -1,7 +1,7 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# +# # Translators: # Kunda, 2014 msgid "" diff --git a/user_sessions/locale/it/LC_MESSAGES/django.po b/user_sessions/locale/it/LC_MESSAGES/django.po index 31b221c..41fde41 100644 --- a/user_sessions/locale/it/LC_MESSAGES/django.po +++ b/user_sessions/locale/it/LC_MESSAGES/django.po @@ -1,7 +1,7 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# +# # Translators: # Daniele Faraglia , 2014 msgid "" diff --git a/user_sessions/locale/nl/LC_MESSAGES/django.po b/user_sessions/locale/nl/LC_MESSAGES/django.po index f1af506..8acd6b8 100644 --- a/user_sessions/locale/nl/LC_MESSAGES/django.po +++ b/user_sessions/locale/nl/LC_MESSAGES/django.po @@ -1,7 +1,7 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# +# # Translators: # Bouke Haarsma , 2013-2014,2017 msgid "" diff --git a/user_sessions/locale/pl_PL/LC_MESSAGES/django.po b/user_sessions/locale/pl_PL/LC_MESSAGES/django.po index 5bc1377..4f66f90 100644 --- a/user_sessions/locale/pl_PL/LC_MESSAGES/django.po +++ b/user_sessions/locale/pl_PL/LC_MESSAGES/django.po @@ -1,7 +1,7 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# +# # Translators: msgid "" msgstr "" diff --git a/user_sessions/locale/zh_CN/LC_MESSAGES/django.po b/user_sessions/locale/zh_CN/LC_MESSAGES/django.po index e3a80cf..d12f02a 100644 --- a/user_sessions/locale/zh_CN/LC_MESSAGES/django.po +++ b/user_sessions/locale/zh_CN/LC_MESSAGES/django.po @@ -1,7 +1,7 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# +# # Translators: # mozillazg , 2014 msgid "" diff --git a/user_sessions/migrations/0002_auto_20151208_1536.py b/user_sessions/migrations/0002_auto_20151208_1536.py index e471adb..4e2bef9 100644 --- a/user_sessions/migrations/0002_auto_20151208_1536.py +++ b/user_sessions/migrations/0002_auto_20151208_1536.py @@ -1,6 +1,7 @@ # Generated by Django 1.9 on 2015-12-08 15:36 from django.db import migrations, models + import user_sessions.models