Changes

Jump to navigation Jump to search
no edit summary
Line 40: Line 40:  
  from six.moves import xmlrpc_client
 
  from six.moves import xmlrpc_client
   −
would import configparser, htmlparser and xmlrpc client(which are some of the modules that I found were relocated in python 3) in both python 2 and 3.
+
would import configparser, htmlparser and xmlrpc client in both python 2 and 3(These are some of the modules used by sugar that I found were relocated in python 3).
 
Of course just try, except blocks will work just the same, but that code would just feel hacky and ugly. Not to mention that six provides a whole host of other [https://pythonhosted.org/six/ features] than just wrap around relocated libraries.
 
Of course just try, except blocks will work just the same, but that code would just feel hacky and ugly. Not to mention that six provides a whole host of other [https://pythonhosted.org/six/ features] than just wrap around relocated libraries.
  
26

edits

Navigation menu