Skip to content

Commit 445e232

Browse files
committed
Python 3 compatibility. Fixed remaining bug in wppm script.
1 parent 82cedbb commit 445e232

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/wppm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env python
22
import sys
33
import os.path as osp
4-
from winpython import wppm, utils
54
from argparse import ArgumentParser
5+
from winpython import wppm, utils, py3compat
66

77
parser = ArgumentParser(description="WinPython Package Manager: install, "\
88
"uninstall or upgrade Python packages on a Windows "\
99
"Python distribution like WinPython.")
10-
parser.add_argument('fname', metavar='package', type=unicode,
10+
parser.add_argument('fname', metavar='package',
11+
type=str if py3compat.PY3 else unicode,
1112
help='path to a Python package')
1213
parser.add_argument('-t', '--target', dest='target', default=sys.prefix,
1314
help='path to target Python distribution '\

0 commit comments

Comments
 (0)