GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Handle locale specific confirmation · Mayur619/bpython@d4577d3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • bpython/curtsiesfrontend
    • interaction.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bpython/curtsiesfrontend/interaction.py‎

Copy file name to clipboardExpand all lines: bpython/curtsiesfrontend/interaction.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import time
33
import curtsies.events as events
44

5+
from bpython.translations import _
56
from bpython.repl import Interaction as BpythonInteraction
67
from bpython.curtsiesfrontend.events import RefreshRequestEvent
78
from bpython.curtsiesfrontend.manual_readline import edit_keys
@@ -103,7 +104,7 @@ def process_event(self, e):
103104
self.escape()
104105
self.request_context.switch(line)
105106
elif self.in_confirm:
106-
if e in ("y", "Y"):
107+
if e.lower() == _("y"):
107108
self.request_context.switch(True)
108109
else:
109110
self.request_context.switch(False)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.