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). --- client/modules/Birthday.py | 2 ++ client/modules/Gmail.py | 2 ++ client/modules/HN.py | 2 ++ client/modules/Joke.py | 2 ++ client/modules/Life.py | 2 ++ client/modules/News.py | 2 ++ client/modules/Notifications.py | 2 ++ client/modules/Time.py | 2 ++ client/modules/Unclear.py | 2 ++ client/modules/Weather.py | 2 ++ client/modules/app_utils.py | 2 ++ 11 files changed, 22 insertions(+) (limited to 'client/modules') diff --git a/client/modules/Birthday.py b/client/modules/Birthday.py index 1388443..35dec59 100644 --- a/client/modules/Birthday.py +++ b/client/modules/Birthday.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import datetime import re from facebook import * diff --git a/client/modules/Gmail.py b/client/modules/Gmail.py index b401ae6..195f0fb 100644 --- a/client/modules/Gmail.py +++ b/client/modules/Gmail.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import imaplib import email import re diff --git a/client/modules/HN.py b/client/modules/HN.py index 863d40a..998625d 100644 --- a/client/modules/HN.py +++ b/client/modules/HN.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import urllib2 import re import random diff --git a/client/modules/Joke.py b/client/modules/Joke.py index 52b3eb9..6d78e7a 100644 --- a/client/modules/Joke.py +++ b/client/modules/Joke.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import random import re diff --git a/client/modules/Life.py b/client/modules/Life.py index 2c79ee1..259d976 100644 --- a/client/modules/Life.py +++ b/client/modules/Life.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import random import re diff --git a/client/modules/News.py b/client/modules/News.py index 8b4b9a3..56ea000 100644 --- a/client/modules/News.py +++ b/client/modules/News.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import feedparser import app_utils import re diff --git a/client/modules/Notifications.py b/client/modules/Notifications.py index fc91da1..2b4cb88 100644 --- a/client/modules/Notifications.py +++ b/client/modules/Notifications.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import re from facebook import * diff --git a/client/modules/Time.py b/client/modules/Time.py index 2fe8a10..ea2c35a 100644 --- a/client/modules/Time.py +++ b/client/modules/Time.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import datetime import re from app_utils import getTimezone diff --git a/client/modules/Unclear.py b/client/modules/Unclear.py index 23ab2ed..6af6082 100644 --- a/client/modules/Unclear.py +++ b/client/modules/Unclear.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- from sys import maxint import random diff --git a/client/modules/Weather.py b/client/modules/Weather.py index ad1ac29..446652a 100644 --- a/client/modules/Weather.py +++ b/client/modules/Weather.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import re import datetime import feedparser diff --git a/client/modules/app_utils.py b/client/modules/app_utils.py index 68cce38..5ac7488 100644 --- a/client/modules/app_utils.py +++ b/client/modules/app_utils.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import smtplib from email.MIMEText import MIMEText import urllib2 -- cgit v1.3.1