changeset 8132:cece135ffcf0

ui: move _isatty near user
author Matt Mackall <mpm@selenic.com>
date Thu, 23 Apr 2009 15:40:10 -0500
parents b0d945b95105
children 57a2a0070d6b
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Mon Apr 13 21:23:52 2009 +0300
+++ b/mercurial/ui.py	Thu Apr 23 15:40:10 2009 -0500
@@ -24,8 +24,6 @@
             dest.set(section, name, value)
 
 class ui(object):
-    _isatty = None
-
     def __init__(self, verbose=False, debug=False, quiet=False,
                  interactive=True, traceback=False, report_untrusted=True,
                  parentui=None):
@@ -69,6 +67,7 @@
     def __getattr__(self, key):
         return getattr(self.parentui, key)
 
+    _isatty = None
     def isatty(self):
         if ui._isatty is None:
             ui._isatty = sys.stdin.isatty()