mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
More python 3 changes
This commit is contained in:
parent
a8953d8d41
commit
8c915f4d80
@ -465,7 +465,8 @@ def main():
|
|||||||
# New input loop to support different link options
|
# New input loop to support different link options
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
l = raw_input("Select link(s) (Type 'h' for more options ['q' to quit]): ")
|
l = input("Select link(s) (Type 'h' for more options"
|
||||||
|
"['q' to quit]): ")
|
||||||
except KeyboardInterrupt :
|
except KeyboardInterrupt :
|
||||||
print("\nCancelled.")
|
print("\nCancelled.")
|
||||||
exit()
|
exit()
|
||||||
@ -518,7 +519,7 @@ def main():
|
|||||||
choices = ()
|
choices = ()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if config.get('SaveToFile', 'enabled'):
|
if config.getboolean('SaveToFile', 'enabled'):
|
||||||
# Save to file is enabled
|
# Save to file is enabled
|
||||||
fileName = os.path.expanduser(
|
fileName = os.path.expanduser(
|
||||||
config.get('SaveToFile','directory')
|
config.get('SaveToFile','directory')
|
||||||
|
Loading…
Reference in New Issue
Block a user