diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-06 10:23:05 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-10 17:57:55 -0400 |
| commit | 1c63df0cc500b7cecbdb3c8b9d1b5b7e732f17d8 (patch) | |
| tree | e555a9b0f8695182d6cc2ba0efa2980d9180bc41 /boot | |
| parent | 6f88dcbf91da185b756dfdff7f62f60b04fd8d66 (diff) | |
| download | jasper-client-1c63df0cc500b7cecbdb3c8b9d1b5b7e732f17d8.tar.gz jasper-client-1c63df0cc500b7cecbdb3c8b9d1b5b7e732f17d8.zip | |
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).
Diffstat (limited to 'boot')
| -rwxr-xr-x | boot/boot.py | 2 | ||||
| -rw-r--r-- | boot/test.py | 2 | ||||
| -rw-r--r-- | boot/vocabcompiler.py | 2 |
3 files changed, 6 insertions, 0 deletions
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. """ |
