Skip to content

Commit 881e2c5

Browse files
committed
web bugfix
1 parent e33d609 commit 881e2c5

File tree

12 files changed

+13
-6
lines changed

12 files changed

+13
-6
lines changed

Example/backup.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HEREPython, Lily, Python, Good Evening, Good EveningHERESolo, Solo, Good Evening, Solo, SidHEREPassword, Solo, Lily, Solo, Good EveningHERESid, Good Evening, Good Evening, Lily, SoloHEREHi, Test, Good Morning, Good Morning, LilyHERETest, Python, Good Morning, Python, PasswordHERESolo, Test, Good Evening, Lily, TestHEREPassword, Lily, Lily, Python, LilyHEREHi, Solo, Password, Test, Good EveningHERELily, Python, Solo, Lily, Good MorningHERELily, Good Morning, Password, Python, Good EveningHEREThrottlerz, Sid, Solo, Solo, HiHEREGood Evening, Throttlerz, Hi, Sid, SidHERELily, Hi, Python, Sid, HiHEREGood Evening, Test, Good Morning, Test, LilyHEREGood Morning, Test, Solo, Throttlerz, Good MorningHEREPassword, Sid, Solo, Good Evening, SidHEREGood Evening, Test, Test, Lily, SoloHEREPython, Lily, Sid, Sid, SoloHEREHi, Lily, Sid, Test, Good MorningHERETest, Throttlerz, Lily, Sid, LilyHERESid, Good Morning, Sid, Good Morning, ThrottlerzHERESid, Test, Good Morning, Password, PasswordHERESid, Hi, Throttlerz, Python, Solo

Script/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ clear
55
cd ..
66
echo "piencrypt: -----> Starting Pie Test..";
77
echo -en '\n';
8+
pip install --upgrade piencrypt;
9+
echo -en '\n';
810
cd Test
911
python pie_test.py;
1012
echo -en '\n';
@@ -17,7 +19,7 @@ python setup.py sdist bdist_wheel;
1719
echo -en '\n';
1820
echo "piencrypt: -----> Build successfull"
1921
echo -en '\n';
20-
twine upload dist/*;
22+
twine upload dist/*
2123
echo -en '\n';
2224
echo "..";
2325
echo '----------------------------------------------------------------------';

Script/git_push.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ clear
44
cd ..
55
echo "piencrypt: -----> Starting Pie Test..";
66
echo -en '\n';
7+
pip install --upgrade piencrypt;
8+
echo -en '\n';
79
cd Test
810
python pie_test.py;
911
echo -en '\n';
@@ -14,7 +16,7 @@ echo "piencrypt: -----> Tracking files..";
1416
echo -en '\n';
1517
git add .;
1618
echo -en '\n';
17-
git commit -m "piencrypt shell scripts";
19+
git commit -m "web bugfix";
1820
echo -en '\n';
1921
echo "piencrypt: -----> Commit completed";
2022
echo -en '\n';

Script/heroku_push.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ clear
44
cd ..
55
echo "piencrypt: -----> Starting Pie Test..";
66
echo -en '\n';
7+
pip install --upgrade piencrypt;
8+
echo -en '\n';
79
cd Test
810
python pie_test.py;
911
echo -en '\n';
File renamed without changes.

Test/binary.txt

-9.3 KB
Binary file not shown.

dist/piencrypt-0.7.2.5.tar.gz

-14.4 KB
Binary file not shown.

dist/piencrypt-0.7.3.5.tar.gz

14.4 KB
Binary file not shown.

piencrypt/pie.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def __init__(self, loc):
77

88
# save the data of the picture as bytes
99
def get_data(self):
10-
with open(self.loc , 'rb') as f, open('binary.txt', 'wb') as b:
10+
with open(self.loc , 'rb') as f, open('backup.txt', 'wb') as b:
1111
r = f.read()
1212
b.write(r)
1313

@@ -27,7 +27,7 @@ def read_data(self):
2727

2828
# revert the picture from the backup bytes file
2929
def revert(self):
30-
with open('binary.txt', 'rb') as f, open(self.loc, 'wb') as e:
30+
with open('backup.txt', 'rb') as f, open(self.loc, 'wb') as e:
3131
r = f.read()
3232
e.write(r)
3333

0 commit comments

Comments
 (0)