diff options
Diffstat (limited to 'client')
| -rw-r--r-- | client/alteration.py | 2 | ||||
| -rw-r--r-- | client/brain.py | 2 | ||||
| -rwxr-xr-x | client/conversation.py | 2 | ||||
| -rw-r--r-- | client/g2p.py | 2 | ||||
| -rw-r--r-- | client/local_mic.py | 2 | ||||
| -rw-r--r-- | client/main.py | 2 | ||||
| -rw-r--r-- | client/mic.py | 2 | ||||
| -rw-r--r-- | client/modules/Birthday.py | 2 | ||||
| -rw-r--r-- | client/modules/Gmail.py | 2 | ||||
| -rw-r--r-- | client/modules/HN.py | 2 | ||||
| -rw-r--r-- | client/modules/Joke.py | 2 | ||||
| -rw-r--r-- | client/modules/Life.py | 2 | ||||
| -rw-r--r-- | client/modules/News.py | 2 | ||||
| -rw-r--r-- | client/modules/Notifications.py | 2 | ||||
| -rw-r--r-- | client/modules/Time.py | 2 | ||||
| -rw-r--r-- | client/modules/Unclear.py | 2 | ||||
| -rw-r--r-- | client/modules/Weather.py | 2 | ||||
| -rw-r--r-- | client/modules/app_utils.py | 2 | ||||
| -rw-r--r-- | client/music.py | 2 | ||||
| -rwxr-xr-x | client/musicmode.py | 2 | ||||
| -rw-r--r-- | client/notifier.py | 2 | ||||
| -rw-r--r-- | client/populate.py | 2 | ||||
| -rw-r--r-- | client/speaker.py | 2 | ||||
| -rw-r--r-- | client/stt.py | 2 | ||||
| -rw-r--r-- | client/test.py | 2 | ||||
| -rw-r--r-- | client/test_mic.py | 2 |
26 files changed, 51 insertions, 1 deletions
diff --git a/client/alteration.py b/client/alteration.py index 550bba1..5c58d92 100644 --- a/client/alteration.py +++ b/client/alteration.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import re diff --git a/client/brain.py b/client/brain.py index 2babfdf..ab92934 100644 --- a/client/brain.py +++ b/client/brain.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import logging from os import listdir diff --git a/client/conversation.py b/client/conversation.py index a5937da..de0f8d5 100755 --- a/client/conversation.py +++ b/client/conversation.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- from notifier import Notifier from musicmode import * from brain import Brain diff --git a/client/g2p.py b/client/g2p.py index bae40b6..7aa0f2d 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import os import subprocess import re diff --git a/client/local_mic.py b/client/local_mic.py index 44e232d..c3eb694 100644 --- a/client/local_mic.py +++ b/client/local_mic.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- """ A drop-in replacement for the Mic class that allows for all I/O to occur over the terminal. Useful for debugging. Unlike with the typical Mic diff --git a/client/main.py b/client/main.py index 36656a3..6683188 100644 --- a/client/main.py +++ b/client/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8-*- import yaml import sys diff --git a/client/mic.py b/client/mic.py index 01a37cb..9e0914b 100644 --- a/client/mic.py +++ b/client/mic.py @@ -1,3 +1,5 @@ +#!/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 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 diff --git a/client/music.py b/client/music.py index 2b22b81..f72d346 100644 --- a/client/music.py +++ b/client/music.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import re import difflib from mpd import MPDClient diff --git a/client/musicmode.py b/client/musicmode.py index df3072c..8a4be67 100755 --- a/client/musicmode.py +++ b/client/musicmode.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- """ Manages the conversation """ diff --git a/client/notifier.py b/client/notifier.py index 341ae04..ef4f0bb 100644 --- a/client/notifier.py +++ b/client/notifier.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import Queue from modules import Gmail from apscheduler.scheduler import Scheduler diff --git a/client/populate.py b/client/populate.py index 054366e..aa6e589 100644 --- a/client/populate.py +++ b/client/populate.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import re from getpass import getpass import yaml diff --git a/client/speaker.py b/client/speaker.py index 4c50a27..c07ce83 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- """ A Speaker handles audio output from Jasper to the user diff --git a/client/stt.py b/client/stt.py index 1bce875..b1e8648 100644 --- a/client/stt.py +++ b/client/stt.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import traceback import json import urllib2 diff --git a/client/test.py b/client/test.py index 29b9ce0..a239b0d 100644 --- a/client/test.py +++ b/client/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/client/test_mic.py b/client/test_mic.py index b01240f..73a0857 100644 --- a/client/test_mic.py +++ b/client/test_mic.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- """ A drop-in replacement for the Mic class used during unit testing. Designed to take pre-arranged inputs as an argument and store any |
