Skip to content

Commit

Permalink
binary (b-string) ascii stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
defjaf committed Mar 20, 2018
1 parent 42678f0 commit 1a88d52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pip_upgrade_outdated/upgrade_pip_packages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
This script upgrades all outdated python packages.
"""
Expand Down Expand Up @@ -28,7 +28,7 @@
import argparse
import functools

__version__ = "1.0b2"
__version__ = "1.0b3"

def run_command(command):
"""
Expand Down Expand Up @@ -74,7 +74,7 @@ def collect_packages(pip_cmd="pip", verbose=False):
if stderr:
print("Error:", stderr)

if verbose and stdout and stdout!='[]\n':
if verbose and stdout and stdout!=b'[]\n':
print(stdout)

pkgs = json.loads(stdout)
Expand Down

0 comments on commit 1a88d52

Please sign in to comment.