Skip to content

Commit 7c8611e

Browse files
authored
Updated to Python 3 env_check
Updated print statements to Python3
1 parent 059aa7a commit 7c8611e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

env_check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
for env_check in open(conffilename): # Open the config file and read all the settings
1818
env_check = env_check.strip() # Set the variable as itself, but strip the extra text out
19-
print '[{}]'.format(env_check) # Format the Output to be in Square Brackets
19+
print('[{}]'.format(env_check)) # Format the Output to be in Square Brackets
2020
newenv = os.getenv(env_check) # Set the variable newenv to get the settings from the OS what is currently set for the settings out the configfile
2121

2222
if newenv is None: # If it doesn't exist
23-
print env_check, 'is not set' # Print it is not set
23+
print(env_check, 'is not set') # Print it is not set
2424
else: # Else if it does exist
25-
print 'Current Setting for {}={}\n'.format(env_check, newenv) # Print out the details
25+
print('Current Setting for {}={}\n'.format(env_check, newenv) # Print out the details)

0 commit comments

Comments
 (0)