diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-10 17:21:59 -0400 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-10 17:21:59 -0400 |
| commit | 8233bd3e1ded9edf607df142c9b13f302f957def (patch) | |
| tree | 44a5545dff3b64ee1159856076ebae5b2dce4bce /client | |
| parent | 4bb5053efde9f40acc9be3033c517bf391e01eca (diff) | |
| parent | 16885dbcc25c01d5db2bf1dbc681828cfc06b70b (diff) | |
| download | jasper-client-8233bd3e1ded9edf607df142c9b13f302f957def.tar.gz jasper-client-8233bd3e1ded9edf607df142c9b13f302f957def.zip | |
Merge pull request #154 from Holzhaus/shebangs
Added shebangs and PEP 0263 source encodings
Diffstat (limited to 'client')
| -rw-r--r-- | client/alteration.py | 1 | ||||
| -rw-r--r-- | client/brain.py | 1 | ||||
| -rw-r--r--[-rwxr-xr-x] | client/conversation.py | 1 | ||||
| -rw-r--r-- | client/g2p.py | 1 | ||||
| -rw-r--r-- | client/local_mic.py | 1 | ||||
| -rwxr-xr-x[-rw-r--r--] | client/main.py | 2 | ||||
| -rw-r--r-- | client/mic.py | 1 | ||||
| -rw-r--r-- | client/modules/Birthday.py | 1 | ||||
| -rw-r--r-- | client/modules/Gmail.py | 1 | ||||
| -rw-r--r-- | client/modules/HN.py | 1 | ||||
| -rw-r--r-- | client/modules/Joke.py | 1 | ||||
| -rw-r--r-- | client/modules/Life.py | 1 | ||||
| -rw-r--r-- | client/modules/News.py | 1 | ||||
| -rw-r--r-- | client/modules/Notifications.py | 1 | ||||
| -rw-r--r-- | client/modules/Time.py | 1 | ||||
| -rw-r--r-- | client/modules/Unclear.py | 1 | ||||
| -rw-r--r-- | client/modules/Weather.py | 1 | ||||
| -rw-r--r-- | client/modules/app_utils.py | 1 | ||||
| -rw-r--r-- | client/music.py | 1 | ||||
| -rw-r--r--[-rwxr-xr-x] | client/musicmode.py | 1 | ||||
| -rw-r--r-- | client/notifier.py | 1 | ||||
| -rw-r--r-- | client/populate.py | 1 | ||||
| -rw-r--r-- | client/speaker.py | 1 | ||||
| -rwxr-xr-x | client/start.sh | 3 | ||||
| -rw-r--r-- | client/stt.py | 2 | ||||
| -rw-r--r-- | client/test.py | 2 | ||||
| -rw-r--r-- | client/test_mic.py | 1 |
27 files changed, 31 insertions, 1 deletions
diff --git a/client/alteration.py b/client/alteration.py index 550bba1..91e0ad3 100644 --- a/client/alteration.py +++ b/client/alteration.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re diff --git a/client/brain.py b/client/brain.py index 2babfdf..b6014de 100644 --- a/client/brain.py +++ b/client/brain.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import logging from os import listdir diff --git a/client/conversation.py b/client/conversation.py index a5937da..fe3e058 100755..100644 --- a/client/conversation.py +++ b/client/conversation.py @@ -1,3 +1,4 @@ +# -*- 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..d22445a 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import os import subprocess import re diff --git a/client/local_mic.py b/client/local_mic.py index 44e232d..3da6ed1 100644 --- a/client/local_mic.py +++ b/client/local_mic.py @@ -1,3 +1,4 @@ +# -*- 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 fb0eaf0..6683188 100644..100755 --- a/client/main.py +++ b/client/main.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import yaml import sys import speaker diff --git a/client/mic.py b/client/mic.py index 01a37cb..096610d 100644 --- a/client/mic.py +++ b/client/mic.py @@ -1,3 +1,4 @@ +# -*- 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..b484a4f 100644 --- a/client/modules/Birthday.py +++ b/client/modules/Birthday.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import datetime import re from facebook import * diff --git a/client/modules/Gmail.py b/client/modules/Gmail.py index b401ae6..dfb6854 100644 --- a/client/modules/Gmail.py +++ b/client/modules/Gmail.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import imaplib import email import re diff --git a/client/modules/HN.py b/client/modules/HN.py index 863d40a..ec7ecef 100644 --- a/client/modules/HN.py +++ b/client/modules/HN.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import urllib2 import re import random diff --git a/client/modules/Joke.py b/client/modules/Joke.py index 52b3eb9..802047c 100644 --- a/client/modules/Joke.py +++ b/client/modules/Joke.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import random import re diff --git a/client/modules/Life.py b/client/modules/Life.py index 2c79ee1..4cafd75 100644 --- a/client/modules/Life.py +++ b/client/modules/Life.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import random import re diff --git a/client/modules/News.py b/client/modules/News.py index 8b4b9a3..d80b791 100644 --- a/client/modules/News.py +++ b/client/modules/News.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import feedparser import app_utils import re diff --git a/client/modules/Notifications.py b/client/modules/Notifications.py index fc91da1..9ee004c 100644 --- a/client/modules/Notifications.py +++ b/client/modules/Notifications.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re from facebook import * diff --git a/client/modules/Time.py b/client/modules/Time.py index 2fe8a10..90ffdf9 100644 --- a/client/modules/Time.py +++ b/client/modules/Time.py @@ -1,3 +1,4 @@ +# -*- 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..3900300 100644 --- a/client/modules/Unclear.py +++ b/client/modules/Unclear.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- from sys import maxint import random diff --git a/client/modules/Weather.py b/client/modules/Weather.py index ad1ac29..5922d33 100644 --- a/client/modules/Weather.py +++ b/client/modules/Weather.py @@ -1,3 +1,4 @@ +# -*- 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..cea6881 100644 --- a/client/modules/app_utils.py +++ b/client/modules/app_utils.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import smtplib from email.MIMEText import MIMEText import urllib2 diff --git a/client/music.py b/client/music.py index 2b22b81..2b6c055 100644 --- a/client/music.py +++ b/client/music.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re import difflib from mpd import MPDClient diff --git a/client/musicmode.py b/client/musicmode.py index df3072c..334f94c 100755..100644 --- a/client/musicmode.py +++ b/client/musicmode.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- """ Manages the conversation """ diff --git a/client/notifier.py b/client/notifier.py index 341ae04..5c2d855 100644 --- a/client/notifier.py +++ b/client/notifier.py @@ -1,3 +1,4 @@ +# -*- 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..d1cbb80 100644 --- a/client/populate.py +++ b/client/populate.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re from getpass import getpass import yaml diff --git a/client/speaker.py b/client/speaker.py index 4c50a27..8344132 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- """ A Speaker handles audio output from Jasper to the user diff --git a/client/start.sh b/client/start.sh index cc33f9c..052db18 100755 --- a/client/start.sh +++ b/client/start.sh @@ -1,3 +1,4 @@ +#!/bin/bash cd $JASPER_HOME/jasper/client rm -rf ../old_client -python main.py & +./main.py & diff --git a/client/stt.py b/client/stt.py index daa3fd3..e14ab26 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 requests diff --git a/client/test.py b/client/test.py index 54aeb49..a8f12be 100644 --- a/client/test.py +++ b/client/test.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import os import sys diff --git a/client/test_mic.py b/client/test_mic.py index b01240f..4813e5c 100644 --- a/client/test_mic.py +++ b/client/test_mic.py @@ -1,3 +1,4 @@ +# -*- 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 |
