فهرست منبع

Update TODO and coding style adjustments

Helmut Pozimski 11 سال پیش
والد
کامیت
eb959229ab
4فایلهای تغییر یافته به همراه9 افزوده شده و 6 حذف شده
  1. 2 0
      TODO
  2. 4 4
      outputhelper.py
  3. 1 1
      stov.py
  4. 2 1
      subscription.py

+ 2 - 0
TODO

@@ -2,4 +2,6 @@ TODOs for 0.4:
 
 *Rework and correct strings
 *Make the whole help screen translateable
+*Don't report success on deletion if the subscription didn't exist
+*Correctly catch signals
 *Full compability with python 3

+ 4 - 4
outputhelper.py

@@ -29,12 +29,12 @@ using print to generate the output"""
 def printf(string, outputlevel, descriptor="stdout", level="default"):
 	if descriptor == "stdout":
 		if level == "default" and outputlevel == "default":
-			if sys.version_info >= (3,0):
+			if sys.version_info >= (3, 0):
 				print(string)
 			else:
 				print(string.encode("utf8"))
 		elif level == "verbose":
-			if sys.version_info >= (3,0):
+			if sys.version_info >= (3, 0):
 				print(string)
 			else:
 				print(string.encode("utf8"))
@@ -42,12 +42,12 @@ def printf(string, outputlevel, descriptor="stdout", level="default"):
 			pass
 	elif descriptor == "stderr":
 		if level == "default" and outputlevel == "default":
-			if sys.version_info >= (3,0):
+			if sys.version_info >= (3, 0):
 				print (string, file=sys.stderr)
 			else:
 				print(string.encode("utf8"), file=sys.stderr)
 		elif level == "verbose":
-			if sys.version_info >= (3,0):
+			if sys.version_info >= (3, 0):
 				print (string, file=sys.stderr)
 			else:
 				print(string.encode("utf8"), file=sys.stderr)

+ 1 - 1
stov.py

@@ -53,7 +53,7 @@ except IOError:
 				"won't be available"), outputlevel="default",
 		descriptor="stderr")
 else:
-	if sys.version_info >= (3,0):
+	if sys.version_info >= (3, 0):
 		trans.install()
 	else:
 		trans.install(unicode=True)

+ 2 - 1
subscription.py

@@ -99,7 +99,8 @@ class sub(object):
 				if self.__search not in i.title:
 					printf(_("You have requested title checking and the title of the video "
 						"does not match with the search string, ignoring it"),
-						outputlevel="verbose", level=self.__conf.outputlevel, descriptor="stderr")
+						outputlevel="verbose", level=self.__conf.outputlevel,
+						descriptor="stderr")
 					continue
 			self.__videoquery = "SELECT id FROM videos WHERE ytid=?"
 			self.__cursor.execute(self.__videoquery, (self.__ytid,))