finish remove unneeded returns, import debug to everything, add header

This commit is contained in:
chrys
2016-09-19 22:15:58 +02:00
parent b6178fa933
commit 010b9b4e06
94 changed files with 541 additions and 33 deletions

View File

@ -1,9 +1,12 @@
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
import difflib
import subprocess
from utils import debug
from core import debug
class driver():
def __init__(self):
@ -50,10 +53,10 @@ class driver():
newContentBytes = vcsa.read()
vcsa.close()
if len(newContentBytes) < 5:
return environment
return
except Exception as e:
environment['runtime']['debug'].writeDebugOut(environment,str(e),debug.debugLevel.ERROR)
return environment
return
screenEncoding = environment['runtime']['settingsManager'].getSetting(environment,'screen', 'encoding')
# set new "old" values
environment['screenData']['oldContentBytes'] = environment['screenData']['newContentBytes']