From 1c63df0cc500b7cecbdb3c8b9d1b5b7e732f17d8 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 6 Sep 2014 10:23:05 +0200 Subject: Add shebang and PEP 0263 source encoding to every module Source encoding should be specified and a shebang helps to execute a module directly (either to start jasper or just for testing purposes). --- boot/boot.py | 2 ++ boot/test.py | 2 ++ boot/vocabcompiler.py | 2 ++ 3 files changed, 6 insertions(+) (limited to 'boot') diff --git a/boot/boot.py b/boot/boot.py index ed191f0..5291ea2 100755 --- a/boot/boot.py +++ b/boot/boot.py @@ -1,4 +1,5 @@ #!/usr/bin/env python2 +# -*- coding: utf-8-*- import os import sys @@ -37,6 +38,7 @@ sys.path.append(lib_path) import speaker as speak speaker = speak.newSpeaker() + def testConnection(): try: urllib2.urlopen("http://www.google.com").getcode() diff --git a/boot/test.py b/boot/test.py index 3d93936..638ca77 100644 --- a/boot/test.py +++ b/boot/test.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import os if os.environ.get('JASPER_HOME') is None: diff --git a/boot/vocabcompiler.py b/boot/vocabcompiler.py index a3aaf66..9177db4 100644 --- a/boot/vocabcompiler.py +++ b/boot/vocabcompiler.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- """ Iterates over all the WORDS variables in the modules and creates a dictionary for the client. """ -- cgit v1.3.1