#126 Porting new-updates-sync to python3
Merged 3 years ago by mohanboddu. Opened 3 years ago by mohanboddu.
fedora-infra/ mohanboddu/ansible re-enable-pushes  into  master

@@ -1,4 +1,4 @@ 

- #!/bin/python2

+ #!/usr/bin/python3

  import copy

  import fedmsg

  import functools
@@ -235,7 +235,7 @@ 

  

      results = {'num_bytes': 0,

                 'num_deleted': 0}

-     for line in stdout.split('\n'):

+     for line in stdout.encode().split('\n'):

          if 'Literal data' in line:

              results['num_bytes'] = int(line.split()[2])

          elif 'deleting ' in line:

Pull-Request has been merged by mohanboddu

3 years ago