summaryrefslogtreecommitdiff
path: root/test/pacman/util.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-22 14:45:55 -0500
committerDan McGee <dan@archlinux.org>2011-06-24 01:36:48 -0500
commit11d8418737d9d9c12584c6eed83bc6cea46ef3e9 (patch)
tree90a3b7370bf7a45150d1f59780043758c05c92ba /test/pacman/util.py
parent763d638ca1d3f1f1d6a8276e36b837e82890f4ee (diff)
pactest: small cleanups and chmod -x most files
Remove empty docstrings, small and easy pylint fixes, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/util.py')
-rw-r--r--[-rwxr-xr-x]test/pacman/util.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/pacman/util.py b/test/pacman/util.py
index ddd955a2..bc8e3500 100755..100644
--- a/test/pacman/util.py
+++ b/test/pacman/util.py
@@ -49,10 +49,7 @@ def vprint(msg):
#
def getfilename(name):
- """
- """
filename = name
- extra = ""
if filename[-1] == "*":
filename = filename.rstrip("*")
if filename.find(" -> ") != -1:
@@ -62,8 +59,6 @@ def getfilename(name):
return filename
def mkfile(name, data = ""):
- """
- """
isdir = 0
islink = 0
setperms = 0
@@ -108,8 +103,6 @@ def mkfile(name, data = ""):
os.chmod(filename, int(perms, 8))
def mkinstallfile(filename, install):
- """
- """
data = []
for key, value in install.iteritems():
if value:
@@ -118,8 +111,6 @@ def mkinstallfile(filename, install):
mkfile(filename, "\n".join(data))
def mkcfgfile(filename, root, option, db):
- """
- """
# Options
data = ["[options]"]
for key, value in option.iteritems():
@@ -147,8 +138,6 @@ def mkcfgfile(filename, root, option, db):
#
def getmd5sum(filename):
- """
- """
if not os.path.isfile(filename):
return ""
fd = open(filename, "rb")
@@ -162,8 +151,6 @@ def getmd5sum(filename):
return checksum.hexdigest()
def mkmd5sum(data):
- """
- """
checksum = hashlib.md5()
checksum.update("%s\n" % data)
return checksum.hexdigest()