chiark / gitweb /
Use and..or as a ternary operator rather than a dictionary
authorCatalin Marinas <catalin.marinas@gmail.com>
Wed, 28 Feb 2007 11:10:22 +0000 (11:10 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Wed, 28 Feb 2007 11:10:22 +0000 (11:10 +0000)
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/gitmergeonefile.py

index 3a55195f1840830a5f54e4ecf8ac0695e28bc390..6f4c1d756f314e21f10494110b5caae478c1545b 100644 (file)
@@ -134,7 +134,7 @@ def interactive_merge(filename):
     mtime = os.path.getmtime(filename)
 
     print 'Trying the interractive %s merge' % \
-          {True: 'three-way', False: 'two-way'}[three_way]
+          (three_way and 'three-way' or 'two-way')
 
     err = os.system(imerger % files_dict)
     if err != 0: