Dolda2000 GitWeb
/
pdm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix simplefunc return bug.
[pdm.git]
/
pdm-repl
diff --git
a/pdm-repl
b/pdm-repl
index
daa8c18
..
cc5c289
100755
(executable)
--- a/
pdm-repl
+++ b/
pdm-repl
@@
-1,4
+1,4
@@
-#!/usr/bin/python
+#!/usr/bin/python
3
import sys, getopt, readline
import pdm.cli
import sys, getopt, readline
import pdm.cli
@@
-14,15
+14,19
@@
for o, a in opts:
if len(args) < 1:
usage(sys.stderr)
sys.exit(1)
if len(args) < 1:
usage(sys.stderr)
sys.exit(1)
-cl = pdm.cli.replclient(args[0])
+try:
+ cl = pdm.cli.replclient(args[0])
+except Exception as e:
+ sys.stderr.write("%s: %s\n" % (args[0], e))
+ sys.exit(1)
buf = ""
while True:
try:
if buf != "":
buf = ""
while True:
try:
if buf != "":
- line =
raw_
input(" ")
+ line = input(" ")
else:
else:
- line =
raw_
input("% ")
+ line = input("% ")
except EOFError:
break
if line == "":
except EOFError:
break
if line == "":