diff options
author | Markus Holtermann <info@markusholtermann.eu> | 2013-01-24 17:57:42 +0100 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2013-01-24 17:57:42 +0100 |
commit | 3dea9b5513875735f3f6105aac05e35cb9b9c0f4 (patch) | |
tree | c33a8dcfe6b8f87ac23389e5a113d414b9ee9613 /bvggrabber | |
parent | f751f585a8e34da2aa0c5f0f55fe9255f8d4d41d (diff) | |
download | bvg-grabber-3dea9b5513875735f3f6105aac05e35cb9b9c0f4.tar.gz bvg-grabber-3dea9b5513875735f3f6105aac05e35cb9b9c0f4.tar.bz2 bvg-grabber-3dea9b5513875735f3f6105aac05e35cb9b9c0f4.zip |
Set correct encoding header
Diffstat (limited to 'bvggrabber')
-rw-r--r-- | bvggrabber/__init__.py | 1 | ||||
-rwxr-xr-x | bvggrabber/bvg-grabber.py | 4 |
2 files changed, 4 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') |