Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#6: support for python 3

  • Loading branch information...
commit b285e67dc14e5ed46b1e92a6dc44cd11cba718f3 1 parent 31e7a98
@nailgun authored
View
8 src/unpushed/command.py
@@ -49,12 +49,10 @@ def main():
repos = sorted(repos)
for status in scanner.scan_repos(repos):
if status['touched'] or options.print_all:
- status_char = '* ' if status['touched'] else ' '
- sys.stdout.write(status_char)
- print status['path'], status['status'], '('+status['vcs']+')'
+ status_char = '*' if status['touched'] else ' '
+ print(status_char, status['path'], status['status'], '('+status['vcs']+')')
if options.verbose:
- sys.stdout.write(status['output'])
- sys.stdout.write('\n')
+ print(status['output'])
if __name__ == '__main__':
main()
View
2  src/unpushed/notify.py
@@ -25,7 +25,6 @@ def notify_linux(report):
for entry in w:
display = entry.split(None, 8)[2]
displays.add(display)
- print displays
filtered = set()
for display in displays:
m = re.match(r'^(:\d+)\.\d+$', display)
@@ -35,7 +34,6 @@ def notify_linux(report):
filtered.add(display)
else:
filtered.add(display)
- print filtered
for display in filtered:
os.environ['DISPLAY'] = display
pynotify.init('unpushed-notify')
View
2  src/unpushed/scanner.py
@@ -24,7 +24,7 @@ def find_repos_with_locate(path):
patterns.append(r'%s\/%s' % (escape(path), escape(dotdir)))
patterns.append(r'%s\/*/%s' % (escape(path), escape(dotdir)))
process = Popen([ 'locate', '-0' ] + patterns, stdout=PIPE)
- paths = process.stdout.read().strip('\0').split('\0')
+ paths = str(process.stdout.read()).strip('\0').split('\0')
return [ (os.path.dirname(p), DOTDIRS[os.path.basename(p)]) for p in paths
if not os.path.islink(p) and os.path.isdir(p) ]
Please sign in to comment.
Something went wrong with that request. Please try again.