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 ++ 1 file changed, 2 insertions(+) (limited to 'boot/boot.py') 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() -- cgit v1.3.1