[mousetrap/gnome3-wip: 236/240] More port to Python 3.
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 236/240] More port to Python 3.
- Date: Mon, 8 Sep 2014 15:32:24 +0000 (UTC)
commit aae1d5ccdc456c3313da12a6b5562491daddc4c8
Author: Stoney Jackson <dr stoney gmail com>
Date: Tue Jul 1 20:36:41 2014 -0400
More port to Python 3.
src/mousetrap/config.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/mousetrap/config.py b/src/mousetrap/config.py
index 92e492c..3529f1c 100644
--- a/src/mousetrap/config.py
+++ b/src/mousetrap/config.py
@@ -10,6 +10,13 @@ from copy import deepcopy
from io import open
+try:
+ unicode
+except NameError:
+ # Python 3
+ basestring = unicode = str
+
+
class Config(dict):
def load(self, paths):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]