From daf973ae0074136bb456298e1cdb85666261ce60 Mon Sep 17 00:00:00 2001
From: Chris Angelico <rosuav@gmail.com>
Date: Fri, 6 Jun 2014 03:51:03 +1000
Subject: [PATCH] Change comments (mainly URLs) to no longer specifically say
 Python 3.3

---
 py/builtin.c                | 2 +-
 py/builtinimport.c          | 2 +-
 py/objexcept.c              | 2 +-
 py/objtype.c                | 2 +-
 py/runtime.c                | 2 +-
 tests/basics/string-repr.py | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/py/builtin.c b/py/builtin.c
index c33637810..8621b0b00 100644
--- a/py/builtin.c
+++ b/py/builtin.c
@@ -466,7 +466,7 @@ STATIC mp_obj_t mp_builtin_hasattr(mp_obj_t object_in, mp_obj_t attr_in) {
     assert(MP_OBJ_IS_QSTR(attr_in));
 
     mp_obj_t dest[2];
-    // TODO: https://docs.python.org/3.3/library/functions.html?highlight=hasattr#hasattr
+    // TODO: https://docs.python.org/3/library/functions.html?highlight=hasattr#hasattr
     // explicitly says "This is implemented by calling getattr(object, name) and seeing
     // whether it raises an AttributeError or not.", so we should explicitly wrap this
     // in nlr_push and handle exception.
diff --git a/py/builtinimport.c b/py/builtinimport.c
index c6910138f..795d9fd5e 100644
--- a/py/builtinimport.c
+++ b/py/builtinimport.c
@@ -306,7 +306,7 @@ mp_obj_t mp_builtin___import__(uint n_args, mp_obj_t *args) {
 
                 if (stat == MP_IMPORT_STAT_DIR) {
                     DEBUG_printf("%s is dir\n", vstr_str(&path));
-                    // https://docs.python.org/3.3/reference/import.html
+                    // https://docs.python.org/3/reference/import.html
                     // "Specifically, any module that contains a __path__ attribute is considered a package."
                     mp_store_attr(module_obj, MP_QSTR___path__, mp_obj_new_str(vstr_str(&path), vstr_len(&path), false));
                     vstr_add_char(&path, PATH_SEP_CHAR);
diff --git a/py/objexcept.c b/py/objexcept.c
index b0ccb90fd..9f421373b 100644
--- a/py/objexcept.c
+++ b/py/objexcept.c
@@ -157,7 +157,7 @@ const mp_obj_type_t mp_type_ ## exc_name = { \
 };
 
 // List of all exceptions, arranged as in the table at:
-// http://docs.python.org/3.3/library/exceptions.html
+// http://docs.python.org/3/library/exceptions.html
 MP_DEFINE_EXCEPTION_BASE(BaseException)
 MP_DEFINE_EXCEPTION(SystemExit, BaseException)
 //MP_DEFINE_EXCEPTION(KeyboardInterrupt, BaseException)
diff --git a/py/objtype.c b/py/objtype.c
index a51e12f1f..dfe5eaa8f 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -352,7 +352,7 @@ STATIC const qstr binary_op_method_name[] = {
 // Given a member that was extracted from an instance, convert it correctly
 // and put the result in the dest[] array for a possible method call.
 // Conversion means dealing with static/class methods, callables, and values.
-// see http://docs.python.org/3.3/howto/descriptor.html
+// see http://docs.python.org/3/howto/descriptor.html
 STATIC void instance_convert_return_attr(mp_obj_t self, const mp_obj_type_t *type, mp_obj_t member, mp_obj_t *dest) {
     assert(dest[1] == NULL);
     if (MP_OBJ_IS_TYPE(member, &mp_type_staticmethod)) {
diff --git a/py/runtime.c b/py/runtime.c
index f13cc1d89..cdbf99d4a 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -837,7 +837,7 @@ void mp_load_method_maybe(mp_obj_t base, qstr attr, mp_obj_t *dest) {
         mp_map_elem_t *elem = mp_map_lookup(locals_map, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP);
         if (elem != NULL) {
             // check if the methods are functions, static or class methods
-            // see http://docs.python.org/3.3/howto/descriptor.html
+            // see http://docs.python.org/3/howto/descriptor.html
             if (MP_OBJ_IS_TYPE(elem->value, &mp_type_staticmethod)) {
                 // return just the function
                 dest[0] = ((mp_obj_static_class_method_t*)elem->value)->fun;
diff --git a/tests/basics/string-repr.py b/tests/basics/string-repr.py
index ba8dbe6d1..34da483a5 100644
--- a/tests/basics/string-repr.py
+++ b/tests/basics/string-repr.py
@@ -1,3 +1,3 @@
-# anything above 0xa0 is printed as Unicode by CPython3.3
+# anything above 0xa0 is printed as Unicode by CPython
 for c in range(0xa1):
     print("0x%02x: %s" % (c, repr(chr(c))))
-- 
GitLab