[gedit/wip/python3] __metaclass__ is now a constructor attribute
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/python3] __metaclass__ is now a constructor attribute
- Date: Sun, 28 Oct 2012 10:18:53 +0000 (UTC)
commit 1a10b0bea802a235756f8feebc53ff3efcb6b54c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Oct 28 11:18:20 2012 +0100
__metaclass__ is now a constructor attribute
plugins/snippets/snippets/shareddata.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/snippets/snippets/shareddata.py b/plugins/snippets/snippets/shareddata.py
index 2c8aae9..3f41a12 100644
--- a/plugins/snippets/snippets/shareddata.py
+++ b/plugins/snippets/snippets/shareddata.py
@@ -20,9 +20,7 @@ import os
from gi.repository import Gtk
-class SharedData(object):
- __metaclass__ = Singleton
-
+class SharedData(object, metaclass=Singleton):
def __init__(self):
self.dlg = None
self.dlg_default_size = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]