mirror of
				https://github.com/onionshare/onionshare.git
				synced 2025-11-03 23:14:12 -05:00 
			
		
		
		
	Improve pep8 conformance
This commit is contained in:
		
							parent
							
								
									9bfde7dfcc
								
							
						
					
					
						commit
						17e389b800
					
				
					 8 changed files with 6 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License
 | 
			
		|||
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
"""
 | 
			
		||||
import tempfile
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class MockSubprocess():
 | 
			
		||||
| 
						 | 
				
			
			@ -31,9 +32,7 @@ class MockSubprocess():
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
def write_tempfile(text):
 | 
			
		||||
    tempdir = tempfile.mkdtemp()
 | 
			
		||||
    path = tempdir + "/test-file.txt"
 | 
			
		||||
    path = os.path.join(tempfile.mkdtemp(), "/test-file.txt")
 | 
			
		||||
    with open(path, "w") as f:
 | 
			
		||||
        f.write(text)
 | 
			
		||||
        f.close()
 | 
			
		||||
    return path
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue