chiark / gitweb /
dot/ipython-config.py: Fix bungled capability check.
[profile] / dot / ipython-config.py
index f48e05772a1bb47da413693f3ac1c68245b48057..a736800338847b1ba541b47fa8fa66ed6d6107cb 100644 (file)
@@ -52,7 +52,7 @@ if PYG and getattr(PYG, 'token', None):
     T.Punctuation: '#eec591',
   }
 
-if PYG and PTK:
+if PTK and getattr(PTK, 'token', None):
   d = {
     PTK.token.Token.MatchingBracket: '',
     PTK.token.Token.MatchingBracket.Cursor: '',