Giter VIP home page Giter VIP logo

Comments (2)

alistaireverett avatar alistaireverett commented on September 28, 2024
$ 2to3-2.7 assist2aspect.py 
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored assist2aspect.py
--- assist2aspect.py	(original)
+++ assist2aspect.py	(refactored)
@@ -1,7 +1,7 @@
 
 from pandas import read_csv
 import numpy as np
-import StringIO
+import io
 
 
 def format_topo_data ( topo ):
@@ -263,7 +263,7 @@
   
 def str2str (assist_string):
     #~ return str(type(assist_string))
-    assist_io = StringIO.StringIO(assist_string)
+    assist_io = io.StringIO(assist_string)
 
     assist = read_csv(assist_io, dtype=str)
     aspect = assist2aspect( assist )
@@ -280,7 +280,7 @@
     ]
     
     #convert to csv string and return
-    aspect_io = StringIO.StringIO()
+    aspect_io = io.StringIO()
     aspect.to_csv(aspect_io, index = False)
     aspect = aspect_io.getvalue()
     aspect_io.close()
RefactoringTool: Files that need to be modified:
RefactoringTool: assist2aspect.py

from icewatch.

alistaireverett avatar alistaireverett commented on September 28, 2024
$ 2to3-2.7 __init__.py 
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored __init__.py
--- __init__.py	(original)
+++ __init__.py	(refactored)
@@ -1 +1 @@
-import assist2aspect
+from . import assist2aspect
RefactoringTool: Files that need to be modified:
RefactoringTool: __init__.py

from icewatch.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.