Changes
1 changed files (+12/-4)
-
-
@@ -64,7 +64,15 @@ * initial public release, Win32 only""" import sys, os, os.path, array, getopt, random, types, fnmatch, operator, string import array import fnmatch import getopt import operator import os import os.path import random import string import sys from functools import reduce KnownProps = ("filename", "size", "ignore", "type", "shuffle", "reuse", "bookmark")
-
@@ -178,14 +186,14 @@def ParseRule(rule): sep_pos = min([rule.find(sep) for sep in "~=<>" if rule.find(sep) > 0]) prop = rule[:sep_pos].strip() if not prop in KnownProps: if prop not in KnownProps: log("WARNING: unknown property `%s'" % prop) return (prop, rule[sep_pos], ParseValue(rule[sep_pos + 1 :].strip())) def ParseAction(action): prop, value = list(map(string.strip, action.split("=", 1))) if not prop in KnownProps: if prop not in KnownProps: log("WARNING: unknown property `%s'" % prop) return (prop, ParseValue(value))
-
@@ -489,7 +497,7 @@ a = array.array("B")a.frombytes(f.read()) PState = a.tolist() f.close() except IOError as EOFError: except IOError: del PState[:] if len(PState) != 21: PState = listval(29) + [0] * 15 + listval(1) # volume 29, FW ver 1.0
-