Remove python encoding pragma

This commit is contained in:
jo 2021-05-28 12:25:05 +02:00
parent 813cbac60d
commit b26de72704
96 changed files with 0 additions and 110 deletions

View File

@ -24,7 +24,6 @@ repos:
args: [--fix=lf] args: [--fix=lf]
- id: trailing-whitespace - id: trailing-whitespace
- id: fix-encoding-pragma
- id: requirements-txt-fixer - id: requirements-txt-fixer
- id: name-tests-test - id: name-tests-test
# TODO: Remove once the django api uses pytest # TODO: Remove once the django api uses pytest

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Django's command-line utility for administrative tasks.""" """Django's command-line utility for administrative tasks."""
import os import os

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.apps import AppConfig from django.apps import AppConfig
from django.db.models.signals import pre_save from django.db.models.signals import pre_save

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.contrib.auth.models import BaseUserManager from django.contrib.auth.models import BaseUserManager

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from .authentication import * from .authentication import *
from .celery import * from .celery import *
from .countries import * from .countries import *

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import hashlib import hashlib
from django.contrib import auth from django.contrib import auth
from django.contrib.auth.models import AbstractBaseUser, Permission from django.contrib.auth.models import AbstractBaseUser, Permission

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models
from .files import File from .files import File
from .smart_blocks import SmartBlock from .smart_blocks import SmartBlock

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models
from .files import File from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models
from .authentication import User from .authentication import User
from .files import File from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models
from .files import File from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models
from .playlists import Playlist from .playlists import Playlist
from .files import File from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models
from .files import File from .files import File

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
GUEST = "G" GUEST = "G"
DJ = "H" DJ = "H"
PROGRAM_MANAGER = "P" PROGRAM_MANAGER = "P"

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.db import models from django.db import models
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from .schedule import Schedule from .schedule import Schedule

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import logging import logging
from django.contrib.auth.models import Group, Permission from django.contrib.auth.models import Group, Permission
from .models.user_constants import GUEST, DJ, PROGRAM_MANAGER, USER_TYPES from .models.user_constants import GUEST, DJ, PROGRAM_MANAGER, USER_TYPES

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from rest_framework.permissions import BasePermission from rest_framework.permissions import BasePermission
from django.conf import settings from django.conf import settings
from .models.user_constants import DJ from .models.user_constants import DJ

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from rest_framework import serializers from rest_framework import serializers
from .models import * from .models import *

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import configparser import configparser
import os import os
from .utils import read_config_file, get_random_string from .utils import read_config_file, get_random_string

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.test.runner import DiscoverRunner from django.test.runner import DiscoverRunner

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from rest_framework.test import APITestCase from rest_framework.test import APITestCase
from django.contrib.auth.models import Group from django.contrib.auth.models import Group
from django.apps import apps from django.apps import apps

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os import os
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from django.contrib.auth.models import AnonymousUser from django.contrib.auth.models import AnonymousUser

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os import os
from django.contrib.auth.models import AnonymousUser from django.contrib.auth.models import AnonymousUser
from django.conf import settings from django.conf import settings

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from django.urls import include, path from django.urls import include, path
from rest_framework import routers from rest_framework import routers

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import configparser import configparser
import sys import sys
import string import string

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os import os
from django.conf import settings from django.conf import settings
from django.http import FileResponse from django.http import FileResponse

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
""" """
WSGI config for api project. WSGI config for api project.

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os import os
import time import time
import shutil import shutil

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os import os
# Make the celeryconfig module visible to celery # Make the celeryconfig module visible to celery

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os import os
from configobj import ConfigObj from configobj import ConfigObj
from kombu import Exchange, Queue from kombu import Exchange, Queue

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from future.standard_library import install_aliases from future.standard_library import install_aliases
install_aliases() install_aliases()

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from pathlib import Path from pathlib import Path
from setuptools import setup from setuptools import setup
from subprocess import call from subprocess import call

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Contains the main application class for airtime_analyzer. """Contains the main application class for airtime_analyzer.
""" """
import logging import logging

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# TODO: use an abstract base class (ie. import from abc ...) once we have python >=3.3 that supports @staticmethod with @abstractmethod # TODO: use an abstract base class (ie. import from abc ...) once we have python >=3.3 that supports @staticmethod with @abstractmethod

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
""" Analyzes and imports an audio file into the Airtime library. """ Analyzes and imports an audio file into the Airtime library.
""" """
import logging import logging

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
""" """
Main CLI entrypoint for the libretime-analyzer app. Main CLI entrypoint for the libretime-analyzer app.
""" """

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import subprocess import subprocess
import logging import logging
import traceback import traceback

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import logging import logging
import os import os
import time import time

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys import sys
import pika import pika
import json import json

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import time import time
import datetime import datetime
import mutagen import mutagen

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
__author__ = "asantoni" __author__ = "asantoni"
import subprocess import subprocess

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import subprocess import subprocess
import logging import logging
from .analyzer import Analyzer from .analyzer import Analyzer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import requests import requests
import json import json
import logging import logging

View File

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

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import * from nose.tools import *
import airtime_analyzer import airtime_analyzer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import * from nose.tools import *
import os import os
import shutil import shutil

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import * from nose.tools import *
from airtime_analyzer.analyzer import Analyzer from airtime_analyzer.analyzer import Analyzer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import * from nose.tools import *
from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer from airtime_analyzer.cuepoint_analyzer import CuePointAnalyzer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import * from nose.tools import *
import os import os
import shutil import shutil

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function from __future__ import print_function
import datetime import datetime
import mutagen import mutagen

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from nose.tools import * from nose.tools import *
from airtime_analyzer.playability_analyzer import * from airtime_analyzer.playability_analyzer import *

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function from __future__ import print_function
from nose.tools import * from nose.tools import *
from airtime_analyzer.replaygain_analyzer import ReplayGainAnalyzer from airtime_analyzer.replaygain_analyzer import ReplayGainAnalyzer

View File

@ -1,3 +1 @@
# -*- coding: utf-8 -*-
__all__ = ["version1"] __all__ = ["version1"]

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import json import json
import datetime import datetime
import logging import logging

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################### ###############################################################################
# This file holds the implementations for all the API clients. # This file holds the implementations for all the API clients.
# #

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
############################################################################### ###############################################################################
# This file holds the implementations for all the API clients. # This file holds the implementations for all the API clients.
# #

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function from __future__ import print_function
from setuptools import setup from setuptools import setup
from subprocess import call from subprocess import call

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import unittest import unittest
from api_clients.utils import ApcUrl, UrlBadParam, IncompleteUrl from api_clients.utils import ApcUrl, UrlBadParam, IncompleteUrl

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import unittest import unittest
import json import json
from mock import MagicMock, patch from mock import MagicMock, patch

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import unittest import unittest
import json import json
from mock import patch, MagicMock from mock import patch, MagicMock

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import datetime import datetime
import configparser import configparser
import unittest import unittest

View File

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

View File

@ -1,5 +1,4 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*-
import runpy import runpy
# Run the liquidsoap python module # Run the liquidsoap python module

View File

@ -1,5 +1,4 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*-
import runpy import runpy
runpy.run_module("pypo", run_name="__main__") runpy.run_module("pypo", run_name="__main__")

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*-
import traceback import traceback

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
""" Runs Airtime liquidsoap """ Runs Airtime liquidsoap
""" """
import argparse import argparse

View File

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

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from api_clients import version1 as api_client from api_clients import version1 as api_client
import sys import sys

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from configobj import ConfigObj from configobj import ConfigObj
import telnetlib import telnetlib
import sys import sys

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
""" """
Python part of radio playout (pypo) Python part of radio playout (pypo)
""" """

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
FILE = "file" FILE = "file"
EVENT = "event" EVENT = "event"
STREAM_BUFFER_START = "stream_buffer_start" STREAM_BUFFER_START = "stream_buffer_start"

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from threading import Thread from threading import Thread
import urllib.request, urllib.error, urllib.parse import urllib.request, urllib.error, urllib.parse
import defusedxml.minidom import defusedxml.minidom

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import re import re
from packaging.version import Version, parse from packaging.version import Version, parse

View File

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

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from threading import Thread from threading import Thread
from queue import Empty from queue import Empty
from configparser import NoOptionError from configparser import NoOptionError

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from threading import Thread from threading import Thread
from collections import deque from collections import deque
from datetime import datetime from datetime import datetime

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from .pypofetch import PypoFetch from .pypofetch import PypoFetch
from .telnetliquidsoap import TelnetLiquidsoap from .telnetliquidsoap import TelnetLiquidsoap

View File

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

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime from datetime import datetime
from datetime import timedelta from datetime import timedelta
from configobj import ConfigObj from configobj import ConfigObj

View File

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
import logging import logging
import json import json
import time import time

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import telnetlib import telnetlib
from .timeout import ls_timeout from .timeout import ls_timeout
import traceback import traceback

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from .pypoliqqueue import PypoLiqQueue from .pypoliqqueue import PypoLiqQueue
from .telnetliquidsoap import DummyTelnetLiquidsoap, TelnetLiquidsoap from .telnetliquidsoap import DummyTelnetLiquidsoap, TelnetLiquidsoap

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import threading import threading
from . import pypofetch from . import pypofetch

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import print_function from __future__ import print_function
from setuptools import setup from setuptools import setup
from subprocess import call from subprocess import call

View File

@ -1,5 +1,4 @@
#!/usr/bin/python2 import sys #!/usr/bin/python2 import sys
# -*- coding: utf-8 -*-
import os import os
import logging import logging
from configobj import ConfigObj from configobj import ConfigObj

View File

@ -1,5 +1,4 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*-
from configobj import ConfigObj from configobj import ConfigObj
from api_clients import api_client as apc from api_clients import api_client as apc

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import subprocess import subprocess
import os import os
import pwd import pwd

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import subprocess import subprocess
import os import os
import pwd import pwd

View File

@ -1,5 +1,4 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*-
import ConfigParser import ConfigParser
import argparse import argparse