From c231090615f552adab46f5ac6fe31aa632588edf 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 ++ 1 file changed, 2 insertions(+) (limited to 'client/modules/Birthday.py') 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 * -- cgit v1.3.1 From 16885dbcc25c01d5db2bf1dbc681828cfc06b70b Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 10 Sep 2014 15:42:47 +0200 Subject: Remove Shebangs from modules not meant to be executed directly See https://github.com/jasperproject/jasper-client/pull/154#issuecomment-54882839 for more info. --- boot/vocabcompiler.py | 1 - client/alteration.py | 1 - client/brain.py | 1 - client/conversation.py | 1 - client/g2p.py | 1 - client/local_mic.py | 1 - client/mic.py | 1 - client/modules/Birthday.py | 1 - client/modules/Gmail.py | 1 - client/modules/HN.py | 1 - client/modules/Joke.py | 1 - client/modules/Life.py | 1 - client/modules/News.py | 1 - client/modules/Notifications.py | 1 - client/modules/Time.py | 1 - client/modules/Unclear.py | 1 - client/modules/Weather.py | 1 - client/modules/app_utils.py | 1 - client/music.py | 1 - client/musicmode.py | 1 - client/notifier.py | 1 - client/populate.py | 1 - client/speaker.py | 1 - client/test_mic.py | 1 - 24 files changed, 24 deletions(-) (limited to 'client/modules/Birthday.py') diff --git a/boot/vocabcompiler.py b/boot/vocabcompiler.py index 9177db4..f22da1a 100644 --- a/boot/vocabcompiler.py +++ b/boot/vocabcompiler.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- """ Iterates over all the WORDS variables in the modules and creates a dictionary for the client. diff --git a/client/alteration.py b/client/alteration.py index 5c58d92..91e0ad3 100644 --- a/client/alteration.py +++ b/client/alteration.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import re diff --git a/client/brain.py b/client/brain.py index ab92934..b6014de 100644 --- a/client/brain.py +++ b/client/brain.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import logging from os import listdir diff --git a/client/conversation.py b/client/conversation.py index de0f8d5..fe3e058 100644 --- a/client/conversation.py +++ b/client/conversation.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- from notifier import Notifier from musicmode import * diff --git a/client/g2p.py b/client/g2p.py index 7aa0f2d..d22445a 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import os import subprocess diff --git a/client/local_mic.py b/client/local_mic.py index c3eb694..3da6ed1 100644 --- a/client/local_mic.py +++ b/client/local_mic.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- """ A drop-in replacement for the Mic class that allows for all I/O to occur diff --git a/client/mic.py b/client/mic.py index 9e0914b..096610d 100644 --- a/client/mic.py +++ b/client/mic.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- """ The Mic class handles all interactions with the microphone and speaker. diff --git a/client/modules/Birthday.py b/client/modules/Birthday.py index 35dec59..b484a4f 100644 --- a/client/modules/Birthday.py +++ b/client/modules/Birthday.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import datetime import re diff --git a/client/modules/Gmail.py b/client/modules/Gmail.py index 195f0fb..dfb6854 100644 --- a/client/modules/Gmail.py +++ b/client/modules/Gmail.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import imaplib import email diff --git a/client/modules/HN.py b/client/modules/HN.py index 998625d..ec7ecef 100644 --- a/client/modules/HN.py +++ b/client/modules/HN.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import urllib2 import re diff --git a/client/modules/Joke.py b/client/modules/Joke.py index 6d78e7a..802047c 100644 --- a/client/modules/Joke.py +++ b/client/modules/Joke.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import random import re diff --git a/client/modules/Life.py b/client/modules/Life.py index 259d976..4cafd75 100644 --- a/client/modules/Life.py +++ b/client/modules/Life.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import random import re diff --git a/client/modules/News.py b/client/modules/News.py index 56ea000..d80b791 100644 --- a/client/modules/News.py +++ b/client/modules/News.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import feedparser import app_utils diff --git a/client/modules/Notifications.py b/client/modules/Notifications.py index 2b4cb88..9ee004c 100644 --- a/client/modules/Notifications.py +++ b/client/modules/Notifications.py @@ -1,4 +1,3 @@ -#!/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 ea2c35a..90ffdf9 100644 --- a/client/modules/Time.py +++ b/client/modules/Time.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import datetime import re diff --git a/client/modules/Unclear.py b/client/modules/Unclear.py index 6af6082..3900300 100644 --- a/client/modules/Unclear.py +++ b/client/modules/Unclear.py @@ -1,4 +1,3 @@ -#!/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 446652a..5922d33 100644 --- a/client/modules/Weather.py +++ b/client/modules/Weather.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import re import datetime diff --git a/client/modules/app_utils.py b/client/modules/app_utils.py index 5ac7488..cea6881 100644 --- a/client/modules/app_utils.py +++ b/client/modules/app_utils.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import smtplib from email.MIMEText import MIMEText diff --git a/client/music.py b/client/music.py index f72d346..2b6c055 100644 --- a/client/music.py +++ b/client/music.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import re import difflib diff --git a/client/musicmode.py b/client/musicmode.py index 8a4be67..334f94c 100644 --- a/client/musicmode.py +++ b/client/musicmode.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- """ Manages the conversation diff --git a/client/notifier.py b/client/notifier.py index ef4f0bb..5c2d855 100644 --- a/client/notifier.py +++ b/client/notifier.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import Queue from modules import Gmail diff --git a/client/populate.py b/client/populate.py index aa6e589..d1cbb80 100644 --- a/client/populate.py +++ b/client/populate.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- import re from getpass import getpass diff --git a/client/speaker.py b/client/speaker.py index c07ce83..8344132 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- """ A Speaker handles audio output from Jasper to the user diff --git a/client/test_mic.py b/client/test_mic.py index 73a0857..4813e5c 100644 --- a/client/test_mic.py +++ b/client/test_mic.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python2 # -*- coding: utf-8-*- """ A drop-in replacement for the Mic class used during unit testing. -- cgit v1.3.1