From 611f83a13b61076c8b46b0845510af25699e2dee Mon Sep 17 00:00:00 2001
From: Gerardo Tauriello <gerardo.tauriello@unibas.ch>
Date: Wed, 24 Apr 2019 11:22:10 +0200
Subject: [PATCH] Fixed parentheses in python exports.

---
 modules/conop/pymod/export_diag.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/conop/pymod/export_diag.cc b/modules/conop/pymod/export_diag.cc
index 6155d63c7..c50c92cce 100644
--- a/modules/conop/pymod/export_diag.cc
+++ b/modules/conop/pymod/export_diag.cc
@@ -30,15 +30,14 @@ void export_diag() {
   enum_<DiagType>("DiagType")
     .value("DIAG_UNK_ATOM", DIAG_UNK_ATOM)
     .value("DIAG_UNK_RESIDUE", DIAG_UNK_RESIDUE)
-    .value("(DIAG_MISSING_ATOM", DIAG_MISSING_ATOM)
+    .value("DIAG_MISSING_ATOM", DIAG_MISSING_ATOM)
     .value("DIAG_NONSTD_RESIDUE", DIAG_NONSTD_RESIDUE)
     .export_values()
   ;
 
   class_<Diag>("Diag", init<DiagType,const char*>())
-    .def("__str__(self)__", &Diag::Format)
+    .def("Format", &Diag::Format, arg("colored")=true)
   ;
   class_<Diagnostics, DiagnosticsPtr>("Diagnostics")
   ;
 }
-
-- 
GitLab