Skip to content
Snippets Groups Projects
Commit 90ebeca3 authored by tuhe's avatar tuhe
Browse files

remove print statements

parent bdf040a3
No related branches found
No related tags found
No related merge requests found
Pipeline #40497 passed
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: codesnipper Name: codesnipper
Version: 0.1.18.15 Version: 0.1.18.16
Summary: A lightweight framework for censoring student solutions files and extracting code + output Summary: A lightweight framework for censoring student solutions files and extracting code + output
Home-page: https://lab.compute.dtu.dk/tuhe/snipper Home-page: https://lab.compute.dtu.dk/tuhe/snipper
Author: Tue Herlau Author: Tue Herlau
......
...@@ -37,11 +37,11 @@ def block_split(lines, tag): ...@@ -37,11 +37,11 @@ def block_split(lines, tag):
def get_tag_args(line): def get_tag_args(line):
# line = line.strip() # line = line.strip()
k = line.find(" ") k = line.find(" ")
if 'nodoc' in line: # if 'nodoc' in line:
print("Nodoc!!") # print("Nodoc!!")
tag_args = ((line[:k + 1] if k >= 0 else line)[len(tag):] ).strip().split(";") tag_args = ((line[:k + 1] if k >= 0 else line)[len(tag):] ).strip().split(";")
if 'nodoc' in tag_args: # if 'nodoc' in tag_args:
print("nodoc.") # print("nodoc.")
tag_args = [t.strip() for t in tag_args] tag_args = [t.strip() for t in tag_args]
# if len(tag_args) == 0: # if len(tag_args) == 0:
......
...@@ -19,7 +19,7 @@ def get_s(lines): ...@@ -19,7 +19,7 @@ def get_s(lines):
print("asdfasdfs") print("asdfasdfs")
if 'nodoc' in c['start_tag_args'] and c['start_tag_args']['nodoc']: if 'nodoc' in c['start_tag_args'] and c['start_tag_args']['nodoc']:
c['block'] = rm_docstring(c['block']) c['block'] = rm_docstring(c['block'])
print("No documentation!") # print("No documentation!")
blocks[c['name']].append(c) blocks[c['name']].append(c)
output = {} output = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment