chiark / gitweb /
dot/ipython-config.py: Fix bungled capability check.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 12 Jul 2024 16:45:56 +0000 (17:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 12 Jul 2024 17:17:32 +0000 (18:17 +0100)
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: '',