summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bvggrabber/__init__.py1
-rwxr-xr-xbvggrabber/bvg-grabber.py4
-rwxr-xr-xsetup.py1
-rw-r--r--tests/__init__.py1
4 files changed, 6 insertions, 1 deletions
diff --git a/bvggrabber/__init__.py b/bvggrabber/__init__.py
index e69de29..40a96af 100644
--- a/bvggrabber/__init__.py
+++ b/bvggrabber/__init__.py
@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-
diff --git a/bvggrabber/bvg-grabber.py b/bvggrabber/bvg-grabber.py
index 0daee59..38d0ca0 100755
--- a/bvggrabber/bvg-grabber.py
+++ b/bvggrabber/bvg-grabber.py
@@ -1,5 +1,5 @@
#! /usr/bin/env python3
-#-.- coding: UTF-8 -.-
+# -*- coding: utf-8 -*-
import json
import time
@@ -28,6 +28,7 @@ def printOutput(stations, stationName):
print('%-9s%-31s%12s' % (departure['line'], departure['direction'], departureText))
print()
+
def queryAPI(stationName):
error = ''
try:
@@ -45,6 +46,7 @@ def queryAPI(stationName):
error += 'Unexpected Error'
return {'error': error}
+
if __name__ == '__main__':
while(True):
march = queryAPI('Marchbrücke')
diff --git a/setup.py b/setup.py
index 1e453bc..e523c92 100755
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import codecs
from os import path
from setuptools import setup, find_packages
diff --git a/tests/__init__.py b/tests/__init__.py
index e69de29..40a96af 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-