From 2a0f9bfd9c7d54fbffe73e2e65cd060777a1b891 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Mon, 6 Jul 2015 11:38:45 -0400
Subject: [PATCH] Use system six in docstring
---
music21/alpha/webapps/apps.py | 6 ++++--
music21/common/__init__.py | 3 ++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/music21/alpha/webapps/apps.py b/music21/alpha/webapps/apps.py
index 309edb376c..86b98a78cc 100644
--- a/music21/alpha/webapps/apps.py
+++ b/music21/alpha/webapps/apps.py
@@ -42,7 +42,8 @@ def setupURLCorpusParseApp(agenda):
Python 3 conversion first...
- >>> if ext.six.PY3:
+ >>> import six
+ >>> if six.PY3:
... responseData = responseData.decode('utf-8')
>>> converter.parse(responseData).flat.highestOffset
@@ -95,7 +96,8 @@ def setupConverterApp(agenda):
Python 3 conversion first...
- >>> if ext.six.PY3:
+ >>> import six
+ >>> if six.PY3:
... responseData = responseData.decode('utf-8')
diff --git a/music21/common/__init__.py b/music21/common/__init__.py
index da32600a16..98bdc054d0 100644
--- a/music21/common/__init__.py
+++ b/music21/common/__init__.py
@@ -755,7 +755,8 @@ def stripAccents(inputString):
This works on Python2, but the doctest does not.
- >>> if ext.six.PY3:
+ >>> import six
+ >>> if six.PY3:
... common.stripAccents(s)
... else: 'tres vite'
'tres vite'
--
2.5.0