335b320d9a
Commit 1754bf4110da251f4aa1dc0803889899b02bfcff introduced a blunder: - for dirname in os.listdir(toppath) + ['.']: + for dirname in os.listdir(toppath) + [toppath]: ... - if self.getsep() == '/' and dirname != '.': + if self.getsep() == '/' and dirname: This change was plainly wrong and would never have worked, so this commit reverts above bit. While touching the function, some minor code documentation, cleanup and limiting line length to 80 chars. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>