Browse Source

Remove encoding specification

pull/339/head
Simon Conseil 8 years ago
parent
commit
23cc8a994b
  1. 2
      docs/conf.py
  2. 2
      setup.py
  3. 2
      sigal/__init__.py
  4. 2
      sigal/gallery.py
  5. 2
      sigal/image.py
  6. 2
      sigal/log.py
  7. 2
      sigal/pkgmeta.py
  8. 2
      sigal/plugins/adjust.py
  9. 2
      sigal/plugins/copyright.py
  10. 2
      sigal/plugins/extended_caching.py
  11. 2
      sigal/plugins/feeds.py
  12. 2
      sigal/plugins/media_page.py
  13. 2
      sigal/plugins/nomedia.py
  14. 2
      sigal/plugins/upload_s3.py
  15. 2
      sigal/plugins/watermark.py
  16. 2
      sigal/settings.py
  17. 2
      sigal/signals.py
  18. 2
      sigal/templates/sigal.conf.py
  19. 2
      sigal/utils.py
  20. 2
      sigal/video.py
  21. 2
      sigal/writer.py
  22. 2
      tests/conftest.py
  23. 2
      tests/sample/sigal.conf.py
  24. 2
      tests/test_cli.py
  25. 2
      tests/test_compress_assets_plugin.py
  26. 2
      tests/test_extended_caching.py
  27. 2
      tests/test_gallery.py
  28. 2
      tests/test_image.py
  29. 2
      tests/test_plugins.py
  30. 12
      tests/test_settings.py
  31. 2
      tests/test_utils.py
  32. 2
      tests/test_video.py
  33. 2
      tests/test_zip.py

2
docs/conf.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import os
import re
import sys

2
setup.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import os
import sys
from setuptools import setup, find_packages

2
sigal/__init__.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
# Copyright (c) 2009-2018 - Simon Conseil
# Permission is hereby granted, free of charge, to any person obtaining a copy

2
sigal/gallery.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
# Copyright (c) 2009-2018 - Simon Conseil
# Copyright (c) 2013 - Christophe-Marie Duquesne
# Copyright (c) 2014 - Jonas Kaufmann

2
sigal/image.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
# Copyright (c) 2009-2018 - Simon Conseil
# Copyright (c) 2015 - François D.
# Copyright (c) 2018 - Edwin Steele

2
sigal/log.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2013-2018 - Simon Conseil
# Permission is hereby granted, free of charge, to any person obtaining a copy

2
sigal/pkgmeta.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
# Copyright (c) 2013-2018 - Simon Conseil
# Permission is hereby granted, free of charge, to any person obtaining a copy

2
sigal/plugins/adjust.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Plugin which adjust the image after resizing.
Based on pilkit's Adjust_ processor.

2
sigal/plugins/copyright.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Plugin which add a copyright to the image.
Settings:

2
sigal/plugins/extended_caching.py

@ -1,5 +1,3 @@
# encoding: utf-8
# Copyright 2017 - Tilman 't.animal' Adler
# Permission is hereby granted, free of charge, to any person obtaining a copy

2
sigal/plugins/feeds.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Plugin which add RSS/ATOM feeds.
This plugin requires feedgenerator_. It uses all the images and videos of the

2
sigal/plugins/media_page.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2018 - Simon Conseil
# Copyright (c) 2014 - Jamie Starke

2
sigal/plugins/nomedia.py

@ -1,5 +1,3 @@
# encoding: utf-8
# Copyright 2017 - Tilman 't.animal' Adler
# Permission is hereby granted, free of charge, to any person obtaining a copy

2
sigal/plugins/upload_s3.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
"""Plugin to upload generated files to Amazon S3.
This plugin requires boto_. All generated files are uploaded to a specified S3

2
sigal/plugins/watermark.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2005 - Shane Hathaway (http://code.activestate.com/recipes/362879-watermark-with-pil/)
# Copyright (c) 2015 - Abdul Qabiz

2
sigal/settings.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
# Copyright (c) 2009-2018 - Simon Conseil
# Copyright (c) 2013 - Christophe-Marie Duquesne
# Copyright (c) 2017 - Mate Lakat

2
sigal/signals.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from blinker import signal
img_resized = signal('img_resized')

2
sigal/templates/sigal.conf.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
#
# All configuration values have a default; values that are commented out serve
# to show the default. Default values are specified when modified in this
# example config file

2
sigal/utils.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2011-2018 - Simon Conseil
# Permission is hereby granted, free of charge, to any person obtaining a copy

2
sigal/video.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
# Copyright (c) 2013 - Christophe-Marie Duquesne
# Copyright (c) 2013-2018 - Simon Conseil

2
sigal/writer.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
# Copyright (c) 2009-2018 - Simon Conseil
# Copyright (c) 2013 - Christophe-Marie Duquesne

2
tests/conftest.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import blinker
import os
import PIL

2
tests/sample/sigal.conf.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
author = 'John Doe'
title = 'Sigal test gallery ☺'
source = 'pictures'

2
tests/test_cli.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import logging
import os
from click.testing import CliRunner

2
tests/test_compress_assets_plugin.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import os
import sys

2
tests/test_extended_caching.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import os
import pickle
import pytest

2
tests/test_gallery.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import locale
import logging
import os

2
tests/test_image.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import os
import PIL
import pytest

2
tests/test_plugins.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import os
from sigal.gallery import Gallery

12
tests/test_settings.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import os
from sigal.settings import read_settings, get_thumb
@ -35,10 +33,7 @@ def test_img_sizes(tmpdir):
"""Test that image size is swaped if needed."""
conf = tmpdir.join('sigal.conf.py')
conf.write("""# -*- coding: utf-8 -*-
thumb_size = (150, 200)
""")
conf.write("thumb_size = (150, 200)")
settings = read_settings(str(conf))
assert settings['thumb_size'] == (200, 150)
@ -50,10 +45,7 @@ def test_theme_path(tmpdir):
tmpdir.join('theme').mkdir()
tmpdir.join('theme').join('templates').mkdir()
conf = tmpdir.join('sigal.conf.py')
conf.write("""# -*- coding: utf-8 -*-
theme = 'theme'
""")
conf.write("theme = 'theme'")
settings = read_settings(str(conf))
assert settings['theme'] == tmpdir.join('theme')

2
tests/test_utils.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import os
from sigal import utils

2
tests/test_video.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import os
import pytest

2
tests/test_zip.py

@ -1,5 +1,3 @@
# -*- coding:utf-8 -*-
import os
import glob
import zipfile

Loading…
Cancel
Save