Skip to content

Commit 126d891

Browse files
committed
Change comment style ini utility
1 parent b59ed1f commit 126d891

File tree

4 files changed

+103
-9
lines changed

4 files changed

+103
-9
lines changed

geckodriver.log

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
1621324020211 geckodriver INFO Listening on 127.0.0.1:41507
2+
1621324021219 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileRVtJqJ"
3+
Error: no DISPLAY environment variable specified
4+
1621324149919 geckodriver INFO Listening on 127.0.0.1:48869
5+
1621324150927 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileMEOopC"
6+
Error: no DISPLAY environment variable specified
7+
1621324200554 geckodriver INFO Listening on 127.0.0.1:41491
8+
1621324201562 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile2YiTQy"
9+
Error: no DISPLAY environment variable specified
10+
1621324333549 geckodriver INFO Listening on 127.0.0.1:38013
11+
1621324334555 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilepfw3T0"
12+
Error: no DISPLAY environment variable specified
13+
1621324377825 geckodriver INFO Listening on 127.0.0.1:34491
14+
1621324378831 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilecLOhQM"
15+
Error: no DISPLAY environment variable specified
16+
1621324515744 geckodriver INFO Listening on 127.0.0.1:51457
17+
1621324516751 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileZ7a0wu"
18+
Error: no DISPLAY environment variable specified
19+
1621324530874 geckodriver INFO Listening on 127.0.0.1:55441
20+
1621324530884 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileS1eczo"
21+
Error: no DISPLAY environment variable specified
22+
1621324532885 geckodriver INFO Listening on 127.0.0.1:40565
23+
1621324533892 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofiledaZuMf"
24+
Error: no DISPLAY environment variable specified
25+
1621324978486 geckodriver INFO Listening on 127.0.0.1:60131
26+
1621324979496 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileooHpRk"
27+
Error: no DISPLAY environment variable specified
28+
1621325001706 geckodriver INFO Listening on 127.0.0.1:36203
29+
1621325002716 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileUgInd0"
30+
Error: no DISPLAY environment variable specified
31+
1621325014013 geckodriver INFO Listening on 127.0.0.1:44311
32+
1621325015019 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileEU9fE7"
33+
Error: no DISPLAY environment variable specified
34+
1621325304613 geckodriver INFO Listening on 127.0.0.1:37081
35+
1621325305622 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile3LXTOE"
36+
Error: no DISPLAY environment variable specified
37+
1621328837674 geckodriver INFO Listening on 127.0.0.1:42377
38+
1621328838684 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilehe5mwR"
39+
Error: no DISPLAY environment variable specified
40+
1621328849227 geckodriver INFO Listening on 127.0.0.1:44461
41+
1621328850237 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilewF33b5"
42+
Error: no DISPLAY environment variable specified
43+
1621431872700 geckodriver INFO Listening on 127.0.0.1:41991
44+
1621431873709 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileN5fJPd"
45+
Error: no DISPLAY environment variable specified
46+
1621431987527 geckodriver INFO Listening on 127.0.0.1:51177
47+
1621431988535 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "--headless" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileRHe08j"
48+
*** You are running in headless mode.
49+
[GFX1-]: glxtest: Unable to open a connection to the X server
50+
[GFX1-]: glxtest: eglCreateContext returned an error
51+
1621431989089 Marionette INFO Marionette enabled
52+
53+
(/usr/lib/firefox/firefox:168955): GLib-GObject-CRITICAL **: 19:16:29.505: g_object_set: assertion 'G_IS_OBJECT (object)' failed
54+
55+
(/usr/lib/firefox/firefox:168975): GLib-GObject-CRITICAL **: 19:16:29.595: g_object_set: assertion 'G_IS_OBJECT (object)' failed
56+
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
57+
1621431990287 Marionette INFO Listening on port 46459
58+
1621431990384 Marionette WARN TLS certificate errors will be ignored for this session
59+
60+
(/usr/lib/firefox/firefox:169058): GLib-GObject-CRITICAL **: 19:16:30.524: g_object_set: assertion 'G_IS_OBJECT (object)' failed
61+
JavaScript warning: https://www.notion.so/app-d1ea26c7c225d6659507.js, line 1: WebGL warning: <Create>: Can't use WebGL in headless mode (https://bugzil.la/1375585).
62+
JavaScript warning: https://www.notion.so/app-d1ea26c7c225d6659507.js, line 1: Failed to create WebGL context: WebGL creation failed:
63+
* Can't use WebGL in headless mode (https://bugzil.la/1375585).
64+
Exiting due to channel error.
65+
Exiting due to channel error.
66+
Exiting due to channel error.
67+
1621432044403 geckodriver INFO Listening on 127.0.0.1:46047
68+
1621432045413 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilecAEI9K"
69+
Error: no DISPLAY environment variable specified
70+
1621432705834 geckodriver INFO Listening on 127.0.0.1:34235
71+
1621432706845 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileTkoAYk"
72+
Error: no DISPLAY environment variable specified
73+
1621432850592 geckodriver INFO Listening on 127.0.0.1:45615
74+
1621432851602 mozrunner::runner INFO Running command: "/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileFAVaKN"
75+
Error: no DISPLAY environment variable specified
76+
1621433037832 geckodriver INFO Listening on 127.0.0.1:47529
77+
1621433038842 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile92pBLl"
78+
Error: no DISPLAY environment variable specified
79+
1621433089167 geckodriver INFO Listening on 127.0.0.1:59537
80+
1621433090177 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileoWZWJf"
81+
Error: no DISPLAY environment variable specified
82+
1621433204171 geckodriver INFO Listening on 127.0.0.1:44521
83+
1621433205179 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilemXIi99"
84+
No protocol specified
85+
Unable to init server: Could not connect: Connection refused
86+
Error: cannot open display: :0
87+
1621433273705 geckodriver INFO Listening on 127.0.0.1:59395
88+
1621433274715 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileSu3waE"
89+
1621433275195 Marionette INFO Marionette enabled
90+
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
91+
1621433276631 Marionette INFO Listening on port 33859
92+
1621433276749 Marionette WARN TLS certificate errors will be ignored for this session
93+
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
94+
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
95+
JavaScript error: resource://gre/modules/LoginManagerChild.jsm, line 194: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]'[JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]' when calling method: [nsIAutoCompletePopup::selectedIndex]
96+
1621433318164 Marionette INFO Stopped listening on port 33859

src/arguments/search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def search_for_results(self, save=False):
7575
questions = self.utility_object.get_que(json_output)
7676
if questions == []:
7777
# evoke an error
78-
search_error = SearchError("\U0001F613 No answer found",
79-
"\U0001F604 Please try reddit")
78+
SearchError("\U0001F613 No answer found",
79+
"\U0001F604 Please try reddit")
8080
else:
8181
data = self.utility_object.get_ans(questions)
8282
print('''

src/arguments/update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class UpdateApplication(object):
88
def __init__(self, current_version):
9-
9+
1010
"""
1111
Check for updates in the application
1212
@@ -34,7 +34,7 @@ def check_for_updates(self):
3434
print(colored("Yeah! You have the latest version",
3535
"green"))
3636
else:
37-
print(colored(f"New release found - {data.tag_name}",
37+
print(colored(f"New release found - {data.tag_name}",
3838
"red"))
3939
webbrowser.open(data["html_url"])
4040

src/arguments/utility.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ def __init__(self):
4545

4646
@property
4747
def playbook_path(self):
48-
"""
49-
Create an environment variable 'DYNAMIC'
48+
"""Create an environment variable 'DYNAMIC'
5049
containing the path of dynamic_playbook.json and returns it
5150
"""
5251
if not os.getenv(self.key):
@@ -362,15 +361,14 @@ def get_ans(self, questions_list):
362361
# Get an access token and extract to a JSON file "access_token.json"
363362
@classmethod
364363
def setCustomKey(self):
365-
client_id = 20013
366-
"""
367-
scopes possible values:
364+
"""scopes possible values:
368365
read_inbox - access a user's global inbox
369366
no_expiry - access_token's with this scope do not expire
370367
write_access - perform write operations as a user
371368
private_info - access full history of a user's private
372369
actions on the site
373370
"""
371+
client_id = 20013
374372
scopes = 'read_inbox'
375373

376374
authorization_url = 'https://stackoverflow.com/oauth/dialog'

0 commit comments

Comments
 (0)