diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pyroSAR/spatial/auxil.py b/pyroSAR/spatial/auxil.py index <HASH>..<HASH> 100644 --- a/pyroSAR/spatial/auxil.py +++ b/pyroSAR/spatial/auxil.py @@ -21,7 +21,7 @@ def crsConvert(crsIn, crsOut): else: srs = osr.SpatialReference() try: - if 'opengis.net/def/crs/EPSG/0/' in crsI...
function crsConvert: fixed bug in converting from EPSG
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -133,7 +133,11 @@ def create_mo_files(): lang, extension = path.splitext(po_file) mo_dir = path.join(localedir, lang, 'LC_MESSAGES') mo_file = domain + '.mo' - msgfmt_cmd = 'msgfmt {} -o {}'.f...
fix(setup.py): Create mo directory before compilation
py
diff --git a/prudentia/local.py b/prudentia/local.py index <HASH>..<HASH> 100644 --- a/prudentia/local.py +++ b/prudentia/local.py @@ -18,6 +18,12 @@ class LocalProvider(SimpleProvider): def __init__(self): super(LocalProvider, self).__init__(self.NAME) + @staticmethod + def _prepare(box): + ...
fix(facts): Prepares local box before contacting it
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup -VERSION = '0.2.0' +VERSION = '0.3.0' setup( name = 'hdlcontroller',
update version in 'setup.py' file
py
diff --git a/shap/benchmark/methods.py b/shap/benchmark/methods.py index <HASH>..<HASH> 100644 --- a/shap/benchmark/methods.py +++ b/shap/benchmark/methods.py @@ -48,7 +48,7 @@ def tree_shap_tree_path_dependent(model, data): def tree_shap_independent_1000(model, data): """ Tree SHAP (independent) """ - da...
Account for potentially small datasets in benchmark test
py
diff --git a/metal/label_model/label_model.py b/metal/label_model/label_model.py index <HASH>..<HASH> 100644 --- a/metal/label_model/label_model.py +++ b/metal/label_model/label_model.py @@ -294,7 +294,7 @@ class LabelModel(Classifier): print('Finished Training') if self.config['...
Report alphas for learned accuracies of LabelModel
py
diff --git a/basescript/log.py b/basescript/log.py index <HASH>..<HASH> 100644 --- a/basescript/log.py +++ b/basescript/log.py @@ -435,7 +435,7 @@ def _configure_logger(fmt, quiet, level, fpath, _GLOBAL_LOG_CONFIGURED = True def init_logger( - fmt='pretty', + fmt=None, quiet=False, level='INFO',...
#<I> resolved the init_logger issue
py
diff --git a/certsuite/cert.py b/certsuite/cert.py index <HASH>..<HASH> 100755 --- a/certsuite/cert.py +++ b/certsuite/cert.py @@ -366,7 +366,7 @@ def _run(args, logger): logging.basicConfig() # Step 1: Get device information try: - dm = mozdevice.DeviceManagerADB() + dm = mozdevice.DeviceM...
Bug <I> - The cert suite fails on devices that do not start adb as root by default
py
diff --git a/indra/statements.py b/indra/statements.py index <HASH>..<HASH> 100644 --- a/indra/statements.py +++ b/indra/statements.py @@ -539,6 +539,8 @@ class Concept(object): db_names = sorted(list(set(self.db_refs.keys()) - set(['TEXT']))) db_ns = db_names[0] if db_names else None db_id =...
Filter out generic BBN grounding for preassembly purposes
py
diff --git a/ginga/colors.py b/ginga/colors.py index <HASH>..<HASH> 100644 --- a/ginga/colors.py +++ b/ginga/colors.py @@ -802,6 +802,9 @@ def scan_rgbtxt(filepath): with open(filepath, 'r') as in_f: buf = in_f.read() + return scan_rgbtxt_buf(buf) + +def scan_rgbtxt_buf(buf): res = {} for...
Re-factored the scan_rgbxt funtion into two functions
py
diff --git a/src/pythonfinder/environment.py b/src/pythonfinder/environment.py index <HASH>..<HASH> 100644 --- a/src/pythonfinder/environment.py +++ b/src/pythonfinder/environment.py @@ -7,7 +7,7 @@ import sys PYENV_INSTALLED = bool(os.environ.get("PYENV_SHELL")) or bool( os.environ.get("PYENV_ROOT") ) -ASDF_INS...
use ASDF_DIR env var to test if ASDF is installed ASDF_DIR can test if ASDF is installed. ASDF_DATA_DIR is (optionally) set by the user so it cannot be used to test if ASDF is installed.
py
diff --git a/grab/response.py b/grab/response.py index <HASH>..<HASH> 100644 --- a/grab/response.py +++ b/grab/response.py @@ -166,11 +166,18 @@ class Response(object): return obj - def save(self, path): + def save(self, path, create_dirs=False): """ Save response body to file. ...
Add save_dirs option to save method of Response class
py
diff --git a/pysonos/services.py b/pysonos/services.py index <HASH>..<HASH> 100644 --- a/pysonos/services.py +++ b/pysonos/services.py @@ -672,11 +672,13 @@ class Service(object): name = state.findtext('{}name'.format(ns)) datatype = state.findtext('{}dataType'.format(ns)) ...
Avoid FutureWarning (#<I>)
py
diff --git a/werobot/session/mongodbstorage.py b/werobot/session/mongodbstorage.py index <HASH>..<HASH> 100644 --- a/werobot/session/mongodbstorage.py +++ b/werobot/session/mongodbstorage.py @@ -13,7 +13,7 @@ class MongoDBStorage(SessionStorage): from werobot.session.mongodbstorage import MongoDBStorage ...
correct codes in MongoDBStorage's docstring
py
diff --git a/tools/vhmlib/vhmserver.py b/tools/vhmlib/vhmserver.py index <HASH>..<HASH> 100644 --- a/tools/vhmlib/vhmserver.py +++ b/tools/vhmlib/vhmserver.py @@ -182,13 +182,16 @@ class ServerApp: f.close() elif key == "2": - # render apache_file - filename = conf.uwsgifile - ...
fixed write uwsgi with empty content
py
diff --git a/termdown.py b/termdown.py index <HASH>..<HASH> 100755 --- a/termdown.py +++ b/termdown.py @@ -495,6 +495,7 @@ def stopwatch( try: sync_start = datetime.now() + pause_start = None seconds_elapsed = 0 laps = [] while quit_after is None or seconds_elapsed < in...
bugfix: in stopwatch mode, recompute sync_start if INPUT_EXIT or INPUT_LAP received *during* pause
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='arguments', - version='25', + version='26', description='Argument parser based on docopt', url='https://github.com/erikdejonge...
pip Wednesday <I> March <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/pgmpy/readwrite/XMLBeliefNetwork.py b/pgmpy/readwrite/XMLBeliefNetwork.py index <HASH>..<HASH> 100644 --- a/pgmpy/readwrite/XMLBeliefNetwork.py +++ b/pgmpy/readwrite/XMLBeliefNetwork.py @@ -37,7 +37,7 @@ class XBNReader: http://xml.coverpages.org/xbn-MSdefault19990414.html """ if...
replace parse method of etree with ElementTree so that it supports cElementTree also
py
diff --git a/git/util.py b/git/util.py index <HASH>..<HASH> 100644 --- a/git/util.py +++ b/git/util.py @@ -577,9 +577,8 @@ class Actor(object): m = cls.name_only_regex.search(string) if m: return Actor(m.group(1), None) - else: - # assume best and use...
removed Unnecessary “else” after “return”
py
diff --git a/python/ray/tune/logger.py b/python/ray/tune/logger.py index <HASH>..<HASH> 100644 --- a/python/ray/tune/logger.py +++ b/python/ray/tune/logger.py @@ -218,7 +218,9 @@ class TBXLogger(Logger): valid_result[full_attr] = value self._file_writer.add_scalar( ...
[tune] np.array compat for logger (#<I>)
py
diff --git a/nodeshot/core/layers/admin.py b/nodeshot/core/layers/admin.py index <HASH>..<HASH> 100755 --- a/nodeshot/core/layers/admin.py +++ b/nodeshot/core/layers/admin.py @@ -53,11 +53,13 @@ class LayerAdmin(PublishActionsAdminMixin, GeoAdmin): super(LayerAdmin, self).publish_action(request, queryset) ...
layers admin: publish/unpublish actions description
py
diff --git a/mmcv/ops/cc_attention.py b/mmcv/ops/cc_attention.py index <HASH>..<HASH> 100644 --- a/mmcv/ops/cc_attention.py +++ b/mmcv/ops/cc_attention.py @@ -3,7 +3,7 @@ import torch.nn as nn import torch.nn.functional as F from torch.autograd.function import once_differentiable -from mmcv.cnn import Scale +from m...
[Feature]: Register CrissCrossAttention into plugin layers (#<I>)
py
diff --git a/mtools/test/test_mlaunch.py b/mtools/test/test_mlaunch.py index <HASH>..<HASH> 100644 --- a/mtools/test/test_mlaunch.py +++ b/mtools/test/test_mlaunch.py @@ -15,6 +15,8 @@ from nose.tools import * from nose.plugins.attrib import attr from nose.plugins.skip import Skip, SkipTest +# temporarily skipping ...
skipping mlaunch tests temporarily until issues are sorted out.
py
diff --git a/astrobase/lcproc.py b/astrobase/lcproc.py index <HASH>..<HASH> 100644 --- a/astrobase/lcproc.py +++ b/astrobase/lcproc.py @@ -1996,16 +1996,18 @@ def runpf(lcfile, if (test_outfile and os.stat(outfile).st_size > 102400): - LOGWARN('periodfinding result for %s already exists ...
lcproc: LOGWARN -> LOGWARNING
py
diff --git a/rflint/parser/testcase.py b/rflint/parser/testcase.py index <HASH>..<HASH> 100644 --- a/rflint/parser/testcase.py +++ b/rflint/parser/testcase.py @@ -64,8 +64,10 @@ class Testcase(object): current_statement.endline = row.linenumber else: if len(current_stateme...
fixed but in .statements property
py
diff --git a/mutagen/_id3specs.py b/mutagen/_id3specs.py index <HASH>..<HASH> 100644 --- a/mutagen/_id3specs.py +++ b/mutagen/_id3specs.py @@ -370,17 +370,18 @@ class VolumePeakSpec(Spec): def read(self, frame, data): # http://bugs.xmms.org/attachment.cgi?id=113&action=view peak = 0 - bits...
_id3specs.py: Switched some 'ord' calls to use bytearray instead. Renamed some variables with the same name as built-ins.
py
diff --git a/workshift/models.py b/workshift/models.py index <HASH>..<HASH> 100644 --- a/workshift/models.py +++ b/workshift/models.py @@ -319,7 +319,7 @@ class RegularWorkshift(models.Model): ) pool = models.ForeignKey( WorkshiftPool, - help_text="The workshift pool for this instance.", + help_text="The work...
Added pool to one off workshifts, fixed help_texts
py
diff --git a/MEA_package/ProgramFiles/bin/means.py b/MEA_package/ProgramFiles/bin/means.py index <HASH>..<HASH> 100644 --- a/MEA_package/ProgramFiles/bin/means.py +++ b/MEA_package/ProgramFiles/bin/means.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import os import sys
hashbang line for means.py
py
diff --git a/salt/modules/win_path.py b/salt/modules/win_path.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_path.py +++ b/salt/modules/win_path.py @@ -74,7 +74,8 @@ def get_path(): ''' ret = __salt__['reg.read_key']('HKEY_LOCAL_MACHINE', 'SYSTEM\\CurrentControlSet\\...
Fix 'dict' object has no attribute split After updating to <I> the state calls of win_path.exists suddenly were broken due to the change in the reg.py module. This commit fixes the win_path.exists read_key implementation to fit the reg.read_value implementation that was discussed in <URL>
py
diff --git a/tests/integration/models_swarm_test.py b/tests/integration/models_swarm_test.py index <HASH>..<HASH> 100644 --- a/tests/integration/models_swarm_test.py +++ b/tests/integration/models_swarm_test.py @@ -31,3 +31,15 @@ class SwarmTest(unittest.TestCase): cm.value.response.status_code == 406 or ...
Add test for join on already joined swarm
py
diff --git a/spyder/plugins/editor/widgets/editor.py b/spyder/plugins/editor/widgets/editor.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/widgets/editor.py +++ b/spyder/plugins/editor/widgets/editor.py @@ -1643,6 +1643,7 @@ class EditorStack(QWidget): if self.get_stack_count() == 0 and self.cre...
FIX: Issue #<I> Fixes the issue with the file name label not being updated when the last tab is closed in the editor.
py
diff --git a/hdl_toolkit/synthetisator/rtlLevel/netlist.py b/hdl_toolkit/synthetisator/rtlLevel/netlist.py index <HASH>..<HASH> 100644 --- a/hdl_toolkit/synthetisator/rtlLevel/netlist.py +++ b/hdl_toolkit/synthetisator/rtlLevel/netlist.py @@ -201,9 +201,9 @@ class RtlNetlist(): # add signals, variables etc. ...
rm unused signals in RtlNetlist.synthesize instead of serializer
py
diff --git a/GPy/testing/pickle_tests.py b/GPy/testing/pickle_tests.py index <HASH>..<HASH> 100644 --- a/GPy/testing/pickle_tests.py +++ b/GPy/testing/pickle_tests.py @@ -59,14 +59,17 @@ class Test(ListDictTestCase): f.seek(0) pio2 = pickle.load(f) self.assertListDictEquals(pio._p...
Update pickle_tests.py
py
diff --git a/src/trackers/redmine.py b/src/trackers/redmine.py index <HASH>..<HASH> 100644 --- a/src/trackers/redmine.py +++ b/src/trackers/redmine.py @@ -22,6 +22,7 @@ _STATUS_COLORS = { 'New': color.bright_yellow, 'In Progress': color.bright_cyan, 'Resolved': color.green, + 'Closed': color.bright_gr...
---a/all option for showing all issues
py
diff --git a/constance/backends/redisd.py b/constance/backends/redisd.py index <HASH>..<HASH> 100644 --- a/constance/backends/redisd.py +++ b/constance/backends/redisd.py @@ -1,3 +1,4 @@ +import six from six.moves import zip from django.core.exceptions import ImproperlyConfigured @@ -25,7 +26,7 @@ class RedisBacken...
fix basestring in python 3
py
diff --git a/src/toil/provisioners/aws/awsProvisioner.py b/src/toil/provisioners/aws/awsProvisioner.py index <HASH>..<HASH> 100644 --- a/src/toil/provisioners/aws/awsProvisioner.py +++ b/src/toil/provisioners/aws/awsProvisioner.py @@ -74,7 +74,9 @@ class AWSProvisioner(AbstractProvisioner): zone = getCurrentAW...
Retry rate exceeded in _getCluserInstance
py
diff --git a/testing/test_unittest.py b/testing/test_unittest.py index <HASH>..<HASH> 100644 --- a/testing/test_unittest.py +++ b/testing/test_unittest.py @@ -850,6 +850,20 @@ def test_usefixtures_marker_on_unittest(base, testdir): @pytest.fixture(scope='function') def fixture2(request, monkeypatch): ...
more debugging for #<I>
py
diff --git a/examples/run_squad.py b/examples/run_squad.py index <HASH>..<HASH> 100644 --- a/examples/run_squad.py +++ b/examples/run_squad.py @@ -471,7 +471,7 @@ def write_predictions(all_examples, all_features, all_results, n_best_size, prelim_predictions = [] # keep track of the minimum score of nu...
typo modify `mull` to `null` in line <I> annotation.
py
diff --git a/py/path/svn/wccommand.py b/py/path/svn/wccommand.py index <HASH>..<HASH> 100644 --- a/py/path/svn/wccommand.py +++ b/py/path/svn/wccommand.py @@ -118,7 +118,7 @@ class SvnWCCommandPath(common.FSPathBase): if svncommon._getsvnversion() == '1.3': url += "@%d" % rev ...
[svn r<I>] (naro) Fix for list.append() obviously, has no single test. --HG-- branch : trunk
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ REQUIREMENTS = [ GRPC_EXTRAS = [ 'grpcio >= 0.13.1', - 'grpc-google-pubsub-v1', + 'gax-google-pubsub-v1', ] setup(
Switch to use 'gax-google-pubsub-v1'. That dep pulls in 'grpc-google-pubsub-v1', along with 'google-gax'.
py
diff --git a/scs_core/osio/manager/topic_manager.py b/scs_core/osio/manager/topic_manager.py index <HASH>..<HASH> 100644 --- a/scs_core/osio/manager/topic_manager.py +++ b/scs_core/osio/manager/topic_manager.py @@ -4,7 +4,6 @@ Created on 13 Nov 2016 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ -im...
Moved GPS UART handling to Host.
py
diff --git a/mtools/util/cmdlinetool.py b/mtools/util/cmdlinetool.py index <HASH>..<HASH> 100644 --- a/mtools/util/cmdlinetool.py +++ b/mtools/util/cmdlinetool.py @@ -75,15 +75,7 @@ class BaseCmdLineTool(object): self.argparser = argparse.ArgumentParser() self.argparser.add_argument('--version', actio...
Backout debugger change from #<I> that introduced stdin usage regression
py
diff --git a/src/dataset.py b/src/dataset.py index <HASH>..<HASH> 100644 --- a/src/dataset.py +++ b/src/dataset.py @@ -100,7 +100,7 @@ def extract_feature_dependent_feature_base(dbpath, folder_path, set_object, extr a += 1 elif (extractor_name not in tmp_object.features) or force_extraction is True: ...
fixed featue_dependent_feature base bug.
py
diff --git a/invenio_previewer/webpack.py b/invenio_previewer/webpack.py index <HASH>..<HASH> 100644 --- a/invenio_previewer/webpack.py +++ b/invenio_previewer/webpack.py @@ -46,7 +46,7 @@ previewer = WebpackThemeBundle( './scss/invenio_previewer/simple_image.scss', }, dep...
webpack: align version with Invenio-theme
py
diff --git a/pykeepass/pykeepass.py b/pykeepass/pykeepass.py index <HASH>..<HASH> 100644 --- a/pykeepass/pykeepass.py +++ b/pykeepass/pykeepass.py @@ -120,6 +120,14 @@ class PyKeePass(object): def entries(self): return self.find_entries_by_title('.*', regex=True) + def xml(self): + return etre...
added PyKeePass.xml
py
diff --git a/pysat/utils/_core.py b/pysat/utils/_core.py index <HASH>..<HASH> 100644 --- a/pysat/utils/_core.py +++ b/pysat/utils/_core.py @@ -681,6 +681,9 @@ def display_available_instruments(inst_loc=None, show_inst_mod=None, if show_platform_name is None and inst_loc is None: show_platform_name = Tru...
STY: added platform sorting Added sorting by platform if the platform is being displayed.
py
diff --git a/tests/test_issues.py b/tests/test_issues.py index <HASH>..<HASH> 100644 --- a/tests/test_issues.py +++ b/tests/test_issues.py @@ -249,7 +249,7 @@ class TestResolvedIssues(unittest.TestCase): Check that when downloading hashtags, the downloader actually stops. """ - looter ...
Use hashtag with lower post count in test_issue_<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages install_requires = [ - "aiohttp==3.3.0", + "aiohttp==3.4.4", "chardet==3.0.4", # latest "gevent==1.4.0", # latest "greenlet==0.4.15", # latest
They even run on aiohttp==<I>
py
diff --git a/dvc/remote/gdrive.py b/dvc/remote/gdrive.py index <HASH>..<HASH> 100644 --- a/dvc/remote/gdrive.py +++ b/dvc/remote/gdrive.py @@ -195,8 +195,10 @@ class RemoteGDrive(RemoteBASE): def list_params(self): params = {"corpora": "default"} if self._bucket != "root" and self._bucket != "app...
gdrive: share drive vs just folder id when we set corpora param (#<I>)
py
diff --git a/vyper/parser/parser_utils.py b/vyper/parser/parser_utils.py index <HASH>..<HASH> 100644 --- a/vyper/parser/parser_utils.py +++ b/vyper/parser/parser_utils.py @@ -346,9 +346,11 @@ def add_variable_offset(parent, key, pos): 'Index is %r but array size is %r' % (key.value, typ.count),...
Add note about uclamplt optimization.
py
diff --git a/http_prompt/lexer.py b/http_prompt/lexer.py index <HASH>..<HASH> 100644 --- a/http_prompt/lexer.py +++ b/http_prompt/lexer.py @@ -108,7 +108,7 @@ class HttpPromptLexer(RegexLexer): ], 'preview_action': [ (r'(?i)(get|head|post|put|patch|delete)(\s*)', - bygroups(Ke...
fixbug/ lexer rules for `preview` command output file redirection
py
diff --git a/testing/code/test_source.py b/testing/code/test_source.py index <HASH>..<HASH> 100644 --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -113,7 +113,7 @@ def test_source_strip_multiline(): def test_syntaxerror_rerepresentation(): ex = pytest.raises(SyntaxError, _pytest._code.compi...
Allow multiple positions for the SyntaxError in pypy<I>
py
diff --git a/pyrubberband/pyrb.py b/pyrubberband/pyrb.py index <HASH>..<HASH> 100644 --- a/pyrubberband/pyrb.py +++ b/pyrubberband/pyrb.py @@ -180,6 +180,7 @@ def timemap_stretch(y, sr, time_map, rbargs=None): ------ ValueError if `time_map` is not monotonic + if `time_map[-1][0]` is not the i...
Added ValueError comment in function header
py
diff --git a/salt/netapi/rest_tornado/saltnado.py b/salt/netapi/rest_tornado/saltnado.py index <HASH>..<HASH> 100644 --- a/salt/netapi/rest_tornado/saltnado.py +++ b/salt/netapi/rest_tornado/saltnado.py @@ -539,7 +539,7 @@ class BaseSaltAPIHandler(tornado.web.RequestHandler, SaltClientsMixIn): # pylin data = ...
I got `None` in data which is not iterable. Account for that.
py
diff --git a/flask_slither/decorators.py b/flask_slither/decorators.py index <HASH>..<HASH> 100644 --- a/flask_slither/decorators.py +++ b/flask_slither/decorators.py @@ -33,8 +33,12 @@ def crossdomain(f): return self._prep_response("CORS request blacklisted", status=405) if self.cors_allowed is n...
updated cors to allow requests from phone apps
py
diff --git a/satpy/tests/test_multiscene.py b/satpy/tests/test_multiscene.py index <HASH>..<HASH> 100644 --- a/satpy/tests/test_multiscene.py +++ b/satpy/tests/test_multiscene.py @@ -547,10 +547,4 @@ def test_save_mp4(smg, tmp_path): "txt": "Test {start_time:%Y-%m-%d %H...
Replace assert_called_with with direct args check In the mock for testing decorating a multiscene, replace the assertion that it's called with a particular dataset to more direct argument checking. Any assert_calls with a numpy array is unreliable, because assert_called_with will use an equality operator which may fa...
py
diff --git a/txtorcon/torconfig.py b/txtorcon/torconfig.py index <HASH>..<HASH> 100644 --- a/txtorcon/torconfig.py +++ b/txtorcon/torconfig.py @@ -17,6 +17,7 @@ from twisted.python import log from twisted.internet import defer, error, protocol from twisted.internet.interfaces import IReactorTime from twisted.interne...
Issue <I>: Correctly identify unix ControlPort That is, if a user passes a config with ControlPort set to "unix:/some/path" then we need to connect to that (instead of pretending it's always a port-number)
py
diff --git a/tests/test_wrappers.py b/tests/test_wrappers.py index <HASH>..<HASH> 100644 --- a/tests/test_wrappers.py +++ b/tests/test_wrappers.py @@ -639,17 +639,15 @@ def test_shallow_mode(): def test_form_parsing_failed(): - data = ( - b'--blah\r\n' - ) - data = wrappers.Request.from_values( + ...
Fix variable naming in test case.
py
diff --git a/kqml/kqml_list.py b/kqml/kqml_list.py index <HASH>..<HASH> 100644 --- a/kqml/kqml_list.py +++ b/kqml/kqml_list.py @@ -93,7 +93,7 @@ class KQMLList(KQMLObject): """ param = self.get(keyword) if param is not None: - return param.string_value() + return safe_de...
Decode when getting string from list entry
py
diff --git a/troposphere/ec2.py b/troposphere/ec2.py index <HASH>..<HASH> 100644 --- a/troposphere/ec2.py +++ b/troposphere/ec2.py @@ -316,16 +316,13 @@ class VPC(AWSObject): class VPCDHCPOptionsAssociation(AWSObject): + type = "AWS::EC2::VPCDHCPOptionsAssociation" + props = { 'DhcpOptionsId': (ba...
Convert VPCDHCPOptionsAssociation to not have __init__ This is inline with the big change in the last pull request. Nice commit message huh?
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ install_reqs = [ 'scikit-learn>=0.16.1', 'seaborn>=0.7.1', 'pandas-datareader>=0.2', - 'empyrical>=0.3.2' + 'empyrical>=0.3.3' ] test_reqs = ['nose>=1.3.7', 'nose-parameterized>=0.5.0', ...
MAINT: bump empyrical version
py
diff --git a/sos/report/plugins/scsi.py b/sos/report/plugins/scsi.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/scsi.py +++ b/sos/report/plugins/scsi.py @@ -39,6 +39,14 @@ class Scsi(Plugin, IndependentPlugin): "/sys/class/scsi_generic" ]) + scsi_types = ["enclosu"] + res...
[scsi.py] Updated scsi plugin to collect more information Now collecting ses page 2 information of scsi devices using sg_ses command
py
diff --git a/neuropythy/vision/__init__.py b/neuropythy/vision/__init__.py index <HASH>..<HASH> 100644 --- a/neuropythy/vision/__init__.py +++ b/neuropythy/vision/__init__.py @@ -13,5 +13,5 @@ from .retinotopy import (empirical_retinotopy_data, predicted_retinotopy_data, r predict_pRF_radius, ...
added disk_vmag; though it still needs some checks/tests
py
diff --git a/simplenote/simplenote.py b/simplenote/simplenote.py index <HASH>..<HASH> 100644 --- a/simplenote/simplenote.py +++ b/simplenote/simplenote.py @@ -256,10 +256,11 @@ class Simplenote(object): # perform the actual HTTP request request = Request(DATA_URL+params) + request...
Fixs for get_note_list for Simperium api Need to work out how to merge all the recent updates in, but in the meantime wanted some quick fixes so I could start playing with this again.
py
diff --git a/haigha/writer.py b/haigha/writer.py index <HASH>..<HASH> 100644 --- a/haigha/writer.py +++ b/haigha/writer.py @@ -26,6 +26,11 @@ class Writer(object): def __str__(self): return ''.join( ['\\x%s'%(chr(c).encode('hex')) for c in self._output_buffer] ) + __repr__ = __str__ + + def __eq__(self, oth...
Defined equality for Writer and made __repr__ the same as __str__.
py
diff --git a/createdb.py b/createdb.py index <HASH>..<HASH> 100755 --- a/createdb.py +++ b/createdb.py @@ -31,4 +31,9 @@ if '--with-dev-data' in sys.argv: detail_name="registration id", icon="phone", placeholder="laksdjfasdlfkj183097falkfj109f" ) + context4 = fmn.lib.models.Context.create( + ...
Add the desktop context to the setup script.
py
diff --git a/helusers/pipeline.py b/helusers/pipeline.py index <HASH>..<HASH> 100644 --- a/helusers/pipeline.py +++ b/helusers/pipeline.py @@ -1,5 +1,6 @@ import logging import requests +from datetime import datetime, timedelta from django.contrib.auth import get_user_model from django.conf import settings @@ -79...
Store access token in session for passing on to JS context
py
diff --git a/adapters/stream.py b/adapters/stream.py index <HASH>..<HASH> 100644 --- a/adapters/stream.py +++ b/adapters/stream.py @@ -49,6 +49,8 @@ class StreamHandler(asynchat.async_chat): try: reply = func(args) if args else func() except Exception: + ...
Added comment to exception ignore clause in stream adapter
py
diff --git a/Facade.py b/Facade.py index <HASH>..<HASH> 100644 --- a/Facade.py +++ b/Facade.py @@ -421,6 +421,14 @@ class UserInterface(object): def create_text_edit_widget(self): raise NotImplemented() + @property + def data_file_path(self): + return self.__ui.get_data_location() + + @p...
Shibo added properties to Facade for data paths. svn r<I>
py
diff --git a/pymc3/variational/opvi.py b/pymc3/variational/opvi.py index <HASH>..<HASH> 100644 --- a/pymc3/variational/opvi.py +++ b/pymc3/variational/opvi.py @@ -271,7 +271,7 @@ class ObjectiveFunction(object): sequences=z, n_steps=z.shape[0])[0].mean() else: a = theano.clone(sel...
fixes inference case when elbo is positive (#<I>)
py
diff --git a/vcspull/cli.py b/vcspull/cli.py index <HASH>..<HASH> 100644 --- a/vcspull/cli.py +++ b/vcspull/cli.py @@ -9,6 +9,7 @@ from __future__ import absolute_import, print_function import logging import sys +from copy import deepcopy import click @@ -122,6 +123,7 @@ def progress_cb(output, timestamp): ...
update_repo: Ensure dict isn't mutated
py
diff --git a/asv/util.py b/asv/util.py index <HASH>..<HASH> 100644 --- a/asv/util.py +++ b/asv/util.py @@ -413,6 +413,9 @@ def check_output(args, valid_return_codes=(0,), timeout=600, dots=True, stderr_reader.join() stdout_reader.join() + proc.stdout.close() + proc.stde...
Explicitly close stdout/stderr pipes in util.check_output Previously, these pipes were closed only when the Popen object was gc'd, which on PyPy can happen too late so that the process runs out of pipes.
py
diff --git a/cli/libreant_db.py b/cli/libreant_db.py index <HASH>..<HASH> 100644 --- a/cli/libreant_db.py +++ b/cli/libreant_db.py @@ -178,7 +178,7 @@ def attach_list(filepaths, notes): name = os.path.basename(fname) assert os.path.exists(fname) mime = mimetypes.guess_type(fname)[0] - ...
FIX error for files with no guessed mimetype
py
diff --git a/src/pydirectory/Directory.py b/src/pydirectory/Directory.py index <HASH>..<HASH> 100644 --- a/src/pydirectory/Directory.py +++ b/src/pydirectory/Directory.py @@ -245,7 +245,8 @@ class File(object): def remove(self): """ Remove - Removes the file from the Directory object, file on fil...
Tested Passed: One test completed. Make it cross platform functionality ready.
py
diff --git a/src/transformers/generation_logits_process.py b/src/transformers/generation_logits_process.py index <HASH>..<HASH> 100644 --- a/src/transformers/generation_logits_process.py +++ b/src/transformers/generation_logits_process.py @@ -137,7 +137,7 @@ class TemperatureLogitsWarper(LogitsWarper): self....
Update typing in generation_logits_process.py (#<I>) Change `torch.Tensor` -> `torch.FloatTensor` in `TemperatureLogitsWarper` to be consistent with the `LogitsWarper` ABC signature annotation.
py
diff --git a/gwpy/types/index.py b/gwpy/types/index.py index <HASH>..<HASH> 100644 --- a/gwpy/types/index.py +++ b/gwpy/types/index.py @@ -60,9 +60,14 @@ class Index(Quantity): numpy.array(start, subok=True, copy=False).dtype, numpy.array(step, subok=True, copy=False).dtype, ...
gwpy.types: change the way Index.define works to avoid precision issues closes #<I>
py
diff --git a/photutils/psf/photometry.py b/photutils/psf/photometry.py index <HASH>..<HASH> 100644 --- a/photutils/psf/photometry.py +++ b/photutils/psf/photometry.py @@ -22,8 +22,10 @@ __all__ = ['BasicPSFPhotometry', 'IterativelySubtractedPSFPhotometry', class BasicPSFPhotometry(object): """ - This class i...
generalize phrasing of the BasicPSFPhotometry docstring
py
diff --git a/stagger/util.py b/stagger/util.py index <HASH>..<HASH> 100644 --- a/stagger/util.py +++ b/stagger/util.py @@ -55,8 +55,9 @@ def set_frames(filename, valuedict, act=True, verbose=False): for (key, value) in valuedict.items(): if key.lower() in tag._friendly_names: # Use friendly n...
stagger/util.py (set_frames): Fix friendly names with dashes. (Fixes issue <I>)
py
diff --git a/gitlab/cli.py b/gitlab/cli.py index <HASH>..<HASH> 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -188,7 +188,7 @@ def main(): sys.exit(e) # We only support v4 API at this time if config.api_version not in ("4",): - raise ModuleNotFoundError(name="gitlab.v%s.cli" % self._api_ve...
fix: wrong variable name Discovered this when I ran flake8 on the file. Unfortunately I was the one who introduced this wrong variable name :(
py
diff --git a/netmiko/ssh_autodetect.py b/netmiko/ssh_autodetect.py index <HASH>..<HASH> 100644 --- a/netmiko/ssh_autodetect.py +++ b/netmiko/ssh_autodetect.py @@ -203,6 +203,8 @@ class SSHDetect(object): """ if kwargs["device_type"] != "autodetect": raise ValueError("The connection device...
SSH autodetect should have cmd_verify disabled
py
diff --git a/server/app.py b/server/app.py index <HASH>..<HASH> 100644 --- a/server/app.py +++ b/server/app.py @@ -85,6 +85,8 @@ class DciControlServer(Eve): jobs.testversion_id FROM jobs WHERE jobs.remoteci_id=:remoteci_id + AND + jobs.created_at > now(...
server: ensure all job get rebuilt If a job is 1 day old, the server can ignore the last result and request a new job. This is not perfect. We should use a more cleaver mechanism. Change-Id: I4d<I>b<I>b<I>a7e<I>be<I>b<I>f8d<I>d<I>e<I>ae
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( version='2015.02.03', author='Jose Fonseca', author_email='jose.r.fonseca@gmail.com', - url='https://code.google.com/p/jrfonseca/wiki/Gprof2Dot', + url='https://github.com/jrfonseca/g...
Update homepage URL in setup.py.
py
diff --git a/go_expvar/check.py b/go_expvar/check.py index <HASH>..<HASH> 100644 --- a/go_expvar/check.py +++ b/go_expvar/check.py @@ -88,10 +88,10 @@ class GoExpvar(AgentCheck): cert = None resp = requests.get( - url, - timeout=10, - verify=verify, -...
Fix on indentation so rake passes
py
diff --git a/installers/macOS/setup.py b/installers/macOS/setup.py index <HASH>..<HASH> 100644 --- a/installers/macOS/setup.py +++ b/installers/macOS/setup.py @@ -92,6 +92,9 @@ def make_app_bundle(dist_dir, make_lite=False): parso : NotADirectoryError: [Errno 20] Not a directory: '<path>/Resource...
* fixed issue for full build version "Library not loaded: @loader_path/.dylibs/libjpeg<I>.dylib"
py
diff --git a/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py b/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py index <HASH>..<HASH> 100644 --- a/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py +++ b/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py @@ -27,6 +27,27 @@ class ThreatIn...
adding something for staging tc_entitys
py
diff --git a/src/Python/somoclu/train.py b/src/Python/somoclu/train.py index <HASH>..<HASH> 100644 --- a/src/Python/somoclu/train.py +++ b/src/Python/somoclu/train.py @@ -531,13 +531,15 @@ class Somoclu(object): :returns: The the dot product of the codebook and the data. :rtype: 2D numpy.array ...
data=None case is handled correctly when calculating the surface state
py
diff --git a/AWSScout2/services/redshift.py b/AWSScout2/services/redshift.py index <HASH>..<HASH> 100644 --- a/AWSScout2/services/redshift.py +++ b/AWSScout2/services/redshift.py @@ -3,12 +3,10 @@ Redshift-related classes and functions """ -# Import opinel from opinel.utils import handle_truncated_response, manage...
Define ec2-classic in redshift (part of #<I>)
py
diff --git a/local_settings/loader.py b/local_settings/loader.py index <HASH>..<HASH> 100644 --- a/local_settings/loader.py +++ b/local_settings/loader.py @@ -56,7 +56,8 @@ class Loader(Base): self.print_warning( 'Local settings file `{0}` not found'.format(self.file_name)) re...
In Loader.load(), only include UPPERCASE base settings We don't want to include things like __builtins__ from the Django settings module globals. It's potentially slow and could have unintended effects.
py
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/event_based.py +++ b/openquake/calculators/event_based.py @@ -348,7 +348,7 @@ class EventBasedCalculator(base.HazardCalculator): err = views.view('gmf_error', sel...
Better logging [skip CI]
py
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py index <HASH>..<HASH> 100755 --- a/fontbakery-check-ttf.py +++ b/fontbakery-check-ttf.py @@ -2020,24 +2020,24 @@ def main(): try: rounded_string = round(float(version_without_comments), 3) - version = round(float(ve...
caught a few mistakes based on flake8 warnings (thanks!)
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -812,6 +812,8 @@ class Loader(object): (str(mod.__name__).startswith('salt.loaded.int.grain') or str(mod.__name__).startswith('salt.loaded.ext.grain')): ...
Load __salt__ into wrappers for salt-ssh Courage is not simply one of the virtues, but the form of every virtue at the testing point. - C. S. Lewis
py
diff --git a/jaraco/dateutil/__init__.py b/jaraco/dateutil/__init__.py index <HASH>..<HASH> 100644 --- a/jaraco/dateutil/__init__.py +++ b/jaraco/dateutil/__init__.py @@ -66,6 +66,7 @@ class Parser(object): # see http://webexhibits.org/calendars/timeline.html for more info osc_per_year = 290091329207984000 osc_per...
Added support for seconds in get_period_seconds Added docs and tests to get_period_seconds
py
diff --git a/spacy/tests/conftest.py b/spacy/tests/conftest.py index <HASH>..<HASH> 100644 --- a/spacy/tests/conftest.py +++ b/spacy/tests/conftest.py @@ -27,7 +27,7 @@ from pathlib import Path import os import pytest - +# These languages get run through generic tokenizer tests LANGUAGES = [English, German, Spanis...
Add comment clarifying what LANGUAGES does
py
diff --git a/livechat/tests.py b/livechat/tests.py index <HASH>..<HASH> 100644 --- a/livechat/tests.py +++ b/livechat/tests.py @@ -194,11 +194,16 @@ class LiveChatTestCase(unittest.TestCase): chat_ends_at=now - timedelta(days=1), ) - ...
test for Nonetype checkmaxcomments
py
diff --git a/astroid/brain/py2gi.py b/astroid/brain/py2gi.py index <HASH>..<HASH> 100644 --- a/astroid/brain/py2gi.py +++ b/astroid/brain/py2gi.py @@ -7,6 +7,7 @@ import inspect import itertools import sys import re +import warnings from astroid import MANAGER, AstroidBuildingException from astroid.builder impor...
Supress py2gi warnings. Patch by Cole Robinson. Closes issue #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ from distutils.core import setup +with open('README.rst') as f: + long_description = f.read() + setup( name='dispatchonvalue', version='0.9.6', @@ -11,7 +14,7 @@ setup( description='Provides ...
Ensure file handle is closed using with statement
py
diff --git a/bokeh/server/server.py b/bokeh/server/server.py index <HASH>..<HASH> 100644 --- a/bokeh/server/server.py +++ b/bokeh/server/server.py @@ -189,6 +189,7 @@ class Server(object): assert not self._stopped, "Already stopped" self._stopped = True self._tornado.stop(wait) + self....
Fix #<I>: close HTTP server explicitly when closing Bokeh server (#<I>) This avoids a ResourceWarning with the HTTP server's listening socket(s).
py
diff --git a/LiSE/LiSE/handle.py b/LiSE/LiSE/handle.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/handle.py +++ b/LiSE/LiSE/handle.py @@ -142,8 +142,8 @@ class EngineHandle(object): k, v = kv return pack(k), pack(v) - old_bytes = dict(map(pack_pair, old.items())) - new_bytes =...
Use the threadpool to serialize as well
py
diff --git a/src/streamlink/plugins/viasat.py b/src/streamlink/plugins/viasat.py index <HASH>..<HASH> 100644 --- a/src/streamlink/plugins/viasat.py +++ b/src/streamlink/plugins/viasat.py @@ -46,7 +46,7 @@ class Viasat(Plugin): | tv6play\.no | - viafree\.(?:dk|no|se) + ...
Added support for viafree.fi
py
diff --git a/typelib/registry.py b/typelib/registry.py index <HASH>..<HASH> 100644 --- a/typelib/registry.py +++ b/typelib/registry.py @@ -138,3 +138,22 @@ class TypeRegistry(object): raise TLException("A type reference with name '%s' already exists" % newvalue) else: self.type_refs[s...
get_final_type belongs to registry
py