X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=a65322d90c4ea4168a4748ba47befb5423e1de85;hb=a997298c5da19ee9eb808bac9b6c494798f7f924;hp=f262e6dd989f19dc2ab6c6390092dfff4a65740b;hpb=65f956533b9d3e4ecab1b5816a9f6afdcf190b0d;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index f262e6d..a65322d 100755 --- a/autorandr.py +++ b/autorandr.py @@ -40,6 +40,10 @@ from distutils.version import LooseVersion as Version from functools import reduce from itertools import chain +try: + input = raw_input +except NameError: + pass virtual_profiles = [ # (name, description, callback) @@ -807,7 +811,7 @@ def main(argv): profile_dirlist.remove("config") profile_dirlist.remove("setup") if profile_dirlist: - print("Profile folder '%s' contains the following:\n---\n%s\n---" % (options["--remove"], "\n".join(profile_dirlist))) + print("Profile folder '%s' contains the following additional files:\n---\n%s\n---" % (options["--remove"], "\n".join(profile_dirlist))) response = input("Do you really want to remove profile '%s'? If so, type 'yes': " % options["--remove"]).strip() if response != "yes": remove = False