diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/third_party/py/googlestorage/publish_release.py b/third_party/py/googlestorage/publish_release.py index <HASH>..<HASH> 100644 --- a/third_party/py/googlestorage/publish_release.py +++ b/third_party/py/googlestorage/publish_release.py @@ -109,7 +109,7 @@ def _upload(auth_http, project_id, bucket_name, file_...
Files should be read and uploaded in binary mode
py
diff --git a/spyderlib/widgets/projectexplorer.py b/spyderlib/widgets/projectexplorer.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/projectexplorer.py +++ b/spyderlib/widgets/projectexplorer.py @@ -368,6 +368,7 @@ class ExplorerTreeWidget(OneColumnTree): self.parent_widget = parent ...
Project explorer/bugfix: at startup, some closed projects may appeared as they were open
py
diff --git a/cmapPy/math/tests/test_fast_cov.py b/cmapPy/math/tests/test_fast_cov.py index <HASH>..<HASH> 100644 --- a/cmapPy/math/tests/test_fast_cov.py +++ b/cmapPy/math/tests/test_fast_cov.py @@ -151,7 +151,7 @@ class TestFastCov(unittest.TestCase): logger.debug("combined: {}".format(combined)) lo...
[ref]:typecast to int for python3
py
diff --git a/dbmail/providers/apple/apns.py b/dbmail/providers/apple/apns.py index <HASH>..<HASH> 100644 --- a/dbmail/providers/apple/apns.py +++ b/dbmail/providers/apple/apns.py @@ -33,8 +33,7 @@ def send(token_hex, message, **kwargs): } } data['aps'].update(kwargs) - payload = dumps( - da...
apns: fix utf-8
py
diff --git a/openquake/engine/export/hazard.py b/openquake/engine/export/hazard.py index <HASH>..<HASH> 100644 --- a/openquake/engine/export/hazard.py +++ b/openquake/engine/export/hazard.py @@ -367,8 +367,6 @@ def _export_hazard_map(output, target, writer_class, file_ext): """ General hazard map export code....
export/hazard: Remove the `makedirs` call in the hazard map export. If the caller asks to export to a file-like, this breaks.
py
diff --git a/satpy/readers/yaml_reader.py b/satpy/readers/yaml_reader.py index <HASH>..<HASH> 100644 --- a/satpy/readers/yaml_reader.py +++ b/satpy/readers/yaml_reader.py @@ -40,7 +40,7 @@ from pyresample.geometry import AreaDefinition from satpy.composites import IncompatibleAreas from satpy.config import recursive_...
Fix test by using DATASET_KEYS instead of DatasetID's as_dict
py
diff --git a/geotweet/mongo.py b/geotweet/mongo.py index <HASH>..<HASH> 100644 --- a/geotweet/mongo.py +++ b/geotweet/mongo.py @@ -1,5 +1,6 @@ import os +import pymongo from pymongo import MongoClient from log import logger @@ -21,7 +22,11 @@ class Mongo(object): self.collection = self.db[collection] ...
warn on duplicate key instead of failing for mongodb inserts
py
diff --git a/tcconfig/_iptables.py b/tcconfig/_iptables.py index <HASH>..<HASH> 100644 --- a/tcconfig/_iptables.py +++ b/tcconfig/_iptables.py @@ -43,8 +43,8 @@ class IptablesMangleMark(object): self.__chain = "PREROUTING" self.__line_number = line_number self.__mark_id = mark_id - sel...
Change sanitizing execution to the constructor
py
diff --git a/salt/roster/__init__.py b/salt/roster/__init__.py index <HASH>..<HASH> 100644 --- a/salt/roster/__init__.py +++ b/salt/roster/__init__.py @@ -67,7 +67,7 @@ class Roster(object): try: targets.update(self.rosters[f_str](tgt, tgt_type)) except salt.exceptions.SaltRen...
Log entire exception for render errors in roster
py
diff --git a/openquake/db/models.py b/openquake/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/db/models.py +++ b/openquake/db/models.py @@ -1669,9 +1669,11 @@ class GmfSet(djm.Model): if self.complete_logic_tree_gmf: # Get all of the GmfSets associated with a logic tree realization, ...
db/models: Added sorting to query for GmfSet __iter__ (complete logic tree GMF case) to solve intermittent test failures (due to result ordering).
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from distutils.core import setup, Extension from setup_libuv import libuv_build_ext, libuv_sdist -__version__ = "0.9.5" +__version__ = "0.9.6.dev" setup(name = "pyuv", version =...
Now working on version <I>
py
diff --git a/salt/ext/win_inet_pton.py b/salt/ext/win_inet_pton.py index <HASH>..<HASH> 100644 --- a/salt/ext/win_inet_pton.py +++ b/salt/ext/win_inet_pton.py @@ -9,6 +9,7 @@ from __future__ import absolute_import import socket import ctypes import os +import ipaddress class sockaddr(ctypes.Structure): @@ -31,6...
Fix win_inet_pton check for malformatted ip addresses
py
diff --git a/neutronclient/tests/unit/test_cli20.py b/neutronclient/tests/unit/test_cli20.py index <HASH>..<HASH> 100644 --- a/neutronclient/tests/unit/test_cli20.py +++ b/neutronclient/tests/unit/test_cli20.py @@ -73,6 +73,12 @@ class FakeStdout(object): def make_string(self): result = '' for li...
Py3k compliance: check for bytes when making a string When faking stdout in tests we must account for the case when "strings" might be bytes, which python3 cares about. Change-Id: I0e<I>c<I>eed<I>d<I>ab6adbcad6f<I> Closes-Bug: #<I>
py
diff --git a/anyconfig/schema.py b/anyconfig/schema.py index <HASH>..<HASH> 100644 --- a/anyconfig/schema.py +++ b/anyconfig/schema.py @@ -75,12 +75,12 @@ def validate(obj, schema, format_checker=None): :return: True if validation succeeded else False """ - (rc, msg) = _validate(obj, schema, format_check...
fix a trivial warnings by pylint (invalid-name)
py
diff --git a/scoap3utils.py b/scoap3utils.py index <HASH>..<HASH> 100644 --- a/scoap3utils.py +++ b/scoap3utils.py @@ -54,7 +54,7 @@ def xml_to_text(xml): if xml.nodeType == xml.TEXT_NODE: return xml.wholeText.encode('utf-8') elif 'mml:' in xml.nodeName: - return xml.toxml().replace('mml:','')...
SCOAP3: mathml cleanup fix * Fixes removal of "mml" namespace prefix from tags - removes postfix from xmlns definition.
py
diff --git a/isso/migrate.py b/isso/migrate.py index <HASH>..<HASH> 100644 --- a/isso/migrate.py +++ b/isso/migrate.py @@ -3,7 +3,6 @@ # TODO # # - export does not include website from commenters -# - Disqus includes already deleted comments from __future__ import division @@ -61,7 +60,7 @@ def disqus(db, xmlfi...
set mode to 4 (deleted) when isDeleted is true
py
diff --git a/adafruit_bus_device/i2c_device.py b/adafruit_bus_device/i2c_device.py index <HASH>..<HASH> 100644 --- a/adafruit_bus_device/i2c_device.py +++ b/adafruit_bus_device/i2c_device.py @@ -110,7 +110,7 @@ class I2CDevice: out_start=0, out_end=None, in_start=0, - in_end=None, + ...
removed comma on line <I> in i2c_device.py
py
diff --git a/drain/step.py b/drain/step.py index <HASH>..<HASH> 100644 --- a/drain/step.py +++ b/drain/step.py @@ -39,22 +39,21 @@ def load(steps, reload=False): if not isinstance(steps, collections.Iterable): return load([steps])[0] - # iterate in reverse - # so popping failed steps doesn't affec...
fix loading with errors (#<I>)
py
diff --git a/test/integration/extraction.py b/test/integration/extraction.py index <HASH>..<HASH> 100755 --- a/test/integration/extraction.py +++ b/test/integration/extraction.py @@ -76,7 +76,7 @@ if __name__ == "__main__": equiv_dict = {} for i in xrange(0, len(dumplines) / 2): - m = re.match(r"set ...
Added noreply to the extraction test.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ setuptools.setup( 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Setuptools Plugin', - 'Development Status :: 1 - Planning', + 'Dev...
setup.py: Set stats to "Alpha".
py
diff --git a/tacl/constants.py b/tacl/constants.py index <HASH>..<HASH> 100644 --- a/tacl/constants.py +++ b/tacl/constants.py @@ -109,7 +109,7 @@ REPORT_DESCRIPTION = '''\ REPORT_EXTEND_HELP = '''\ Extend the results to list the highest size grams that also count as matches, going beyond the maximum size re...
Added clarification of the (non-)behaviour of --extend on diff results. This is part of the fix for #<I>.
py
diff --git a/dagobah/backend/mongo.py b/dagobah/backend/mongo.py index <HASH>..<HASH> 100644 --- a/dagobah/backend/mongo.py +++ b/dagobah/backend/mongo.py @@ -31,3 +31,13 @@ class MongoBackend(BaseBackend): def __repr__(self): return '<MongoBackend (host: %s, port: %s)>' % (self.host, self.port) + + + ...
Add barebones Mongo backend support for commiting
py
diff --git a/pyontutils/utils.py b/pyontutils/utils.py index <HASH>..<HASH> 100644 --- a/pyontutils/utils.py +++ b/pyontutils/utils.py @@ -19,8 +19,6 @@ from collections.abc import MutableMapping from concurrent.futures import ThreadPoolExecutor from colorlog import ColoredFormatter import nest_asyncio -# Allows run...
made nest_asyncio an option in def Async since it breaks in windows
py
diff --git a/thinc/shims/tensorflow.py b/thinc/shims/tensorflow.py index <HASH>..<HASH> 100644 --- a/thinc/shims/tensorflow.py +++ b/thinc/shims/tensorflow.py @@ -178,6 +178,7 @@ class TensorFlowShim(Shim): self._model.save(path) def from_disk(self, path): + tf.keras.backend.clear_session() ...
Add clear_session from @Abhijit-<I>
py
diff --git a/wafer/settings.py b/wafer/settings.py index <HASH>..<HASH> 100644 --- a/wafer/settings.py +++ b/wafer/settings.py @@ -2,11 +2,6 @@ import os from django.utils.translation import ugettext_lazy as _ -try: - from localsettings import * -except ImportError: - pass - # Django settings for wafer proj...
wafer.settings: don't load localsettings Based on the documentation (docs/install.rst), the recommended way of using wafer is in a new Django app that includes wafer settings in its own. In that case, it's less surprising to let that app handle any local settings loading, if any is needed. In fact, most apps using waf...
py
diff --git a/c7n/config.py b/c7n/config.py index <HASH>..<HASH> 100644 --- a/c7n/config.py +++ b/c7n/config.py @@ -26,6 +26,9 @@ class Bag(dict): except KeyError: raise AttributeError(k) + def __setattr__(self, k, v): + self[k] = v + class Config(Bag):
core - fix bag/config attribute mutation (#<I>)
py
diff --git a/tests/test_commands.py b/tests/test_commands.py index <HASH>..<HASH> 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -69,6 +69,28 @@ def test_multiple_commands(create_project, run): assert run('roar rawr') == 'RAWR!\n' +def test_help(create_project, run): + """Test that ...
Add a test for the autogenerated help subcommand.
py
diff --git a/dataviews/collector.py b/dataviews/collector.py index <HASH>..<HASH> 100644 --- a/dataviews/collector.py +++ b/dataviews/collector.py @@ -410,7 +410,7 @@ class Analysis(Aggregator): return None else: view = self.reference.resolve(viewgroup) - return self.analys...
Added internal viewgroup buffer to avoid unnecessary repeat analysis
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='pyprofiler', - version='61', + version='62', description='Profiler utility for python, graphical and textual, whole program or segmen...
Monday <I> August <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/mistletoe/span_token.py b/mistletoe/span_token.py index <HASH>..<HASH> 100644 --- a/mistletoe/span_token.py +++ b/mistletoe/span_token.py @@ -214,7 +214,7 @@ class EscapeSequence(SpanToken): Attributes: children (iterator): a single RawText node for alternative text. """ - pattern = r...
💡 allow escaping "#", "`" and ">"
py
diff --git a/astrodbkit/astrodb.py b/astrodbkit/astrodb.py index <HASH>..<HASH> 100755 --- a/astrodbkit/astrodb.py +++ b/astrodbkit/astrodb.py @@ -1402,7 +1402,7 @@ def convert_spectrum(File): return spectrum -def __create_waxis(fitsHeader, lenData, fileName, wlog=False): +def __create_waxis(fitsHeader, le...
possible fix for issue #<I>
py
diff --git a/tests/test_gnupg.py b/tests/test_gnupg.py index <HASH>..<HASH> 100644 --- a/tests/test_gnupg.py +++ b/tests/test_gnupg.py @@ -522,9 +522,15 @@ class GPGTestCase(unittest.TestCase): def test_recv_keys_default(self): """Testing receiving keys from a keyserver.""" - key = self.gpg.recv_...
Write the recv key to a file for later tests to use to save entropy.
py
diff --git a/python/pyspark/sql/dataframe.py b/python/pyspark/sql/dataframe.py index <HASH>..<HASH> 100644 --- a/python/pyspark/sql/dataframe.py +++ b/python/pyspark/sql/dataframe.py @@ -566,8 +566,7 @@ class DataFrame(object): if on is None or len(on) == 0: jdf = self._jdf.join(other._jdf) - - ...
[SPARK-<I>] [PYTHON] PySpark DF join no longer accepts on=None rxin First pull request for Spark so let me know if I am missing anything The contribution is my original work and I license the work to the project under the project's open source license.
py
diff --git a/tests/factory.py b/tests/factory.py index <HASH>..<HASH> 100644 --- a/tests/factory.py +++ b/tests/factory.py @@ -221,6 +221,12 @@ class FactoryTestCase(unittest.TestCase): result = datetime_safe.date(2008, 2, 29).strftime('%y') self.assertEqual(result, r'08') + def test_datetime_saf...
Added unit test for new_date method
py
diff --git a/pebble/decorators/process.py b/pebble/decorators/process.py index <HASH>..<HASH> 100644 --- a/pebble/decorators/process.py +++ b/pebble/decorators/process.py @@ -208,6 +208,7 @@ class ProcessWrapper(object): def __get__(self, instance, owner=None): """Turns the decorator into a descriptor ...
fix process decorator when a method is decorated in Windows
py
diff --git a/pydoop/app/main.py b/pydoop/app/main.py index <HASH>..<HASH> 100644 --- a/pydoop/app/main.py +++ b/pydoop/app/main.py @@ -57,13 +57,14 @@ def make_parser(): epilog=("Supports argparse @confile syntax "), fromfile_prefix_chars='@' ) - + parser._pydoop_docs_helper = {} parser.a...
app/main: added support for the help dumper tool
py
diff --git a/phy/cluster/manual/views.py b/phy/cluster/manual/views.py index <HASH>..<HASH> 100644 --- a/phy/cluster/manual/views.py +++ b/phy/cluster/manual/views.py @@ -1102,14 +1102,14 @@ class FeatureView(ManualClusteringView): j = 0 for i in range(0, self.n_cols): self[i, j].text(pos...
No need for tuple indices
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,5 +2,7 @@ import sys if sys.version_info > (3,): collect_ignore = ["test_django_channels.py"] + if sys.version_info < (3, 6): + collect_ignore.append('test_gevent.py') ...
Ignore gevent tests on less than Python <I>
py
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/readinput.py +++ b/openquake/commonlib/readinput.py @@ -847,7 +847,7 @@ class Exposure(object): param['out_of_region'] += 1 return tagnode...
Fixed small bug with the tagnode [skip CI] Former-commit-id: e<I>c2bd9bd<I>a2d<I>ae<I>d<I>
py
diff --git a/nodeshot/forms.py b/nodeshot/forms.py index <HASH>..<HASH> 100755 --- a/nodeshot/forms.py +++ b/nodeshot/forms.py @@ -16,6 +16,7 @@ from django.utils.translation import ugettext_lazy as _ class NodeForm(forms.ModelForm): password2 = forms.CharField(max_length=20, required=True, widget=forms.Passwor...
Values of /node_form/ are stripped before being inserted in the database.
py
diff --git a/src/sos/runtime.py b/src/sos/runtime.py index <HASH>..<HASH> 100644 --- a/src/sos/runtime.py +++ b/src/sos/runtime.py @@ -48,6 +48,17 @@ def _load_group(group): _plugin = _entrypoint.load() globals()[_name] = _plugin except Exception as e: + # look for sos vers...
Gives out an warning if the failure to load a symbol is due to older version of sos. #<I>
py
diff --git a/xdot.py b/xdot.py index <HASH>..<HASH> 100755 --- a/xdot.py +++ b/xdot.py @@ -1537,7 +1537,8 @@ class DotWidget(Gtk.DrawingArea): #TODO GTK3: Second argument has to be of type Gdk.EventButton instead of object. __gsignals__ = { - 'clicked' : (GObject.SIGNAL_RUN_LAST, None, (str, object))...
Pipe errors through to DotWindow from DotWidget. This commit adds an error_dialog funciton to DotWidget which emits an error signal. DotWindow connects to this error signal and, when emitted, it displays the error dialog.
py
diff --git a/programs/magic_gui.py b/programs/magic_gui.py index <HASH>..<HASH> 100755 --- a/programs/magic_gui.py +++ b/programs/magic_gui.py @@ -175,7 +175,7 @@ class MainFrame(wx.Frame): #---sizer 2 ---- - bSizer2 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Upload to MagIC database",...
clarify Magic GUI wording as to MagIC upload
py
diff --git a/salt/modules/git.py b/salt/modules/git.py index <HASH>..<HASH> 100644 --- a/salt/modules/git.py +++ b/salt/modules/git.py @@ -261,7 +261,7 @@ def _git_run(command, cwd=None, user=None, password=None, identity=None, # Cleanup the temporary identify file if tmp_identity_file...
Uncomment the line that removes the temporary identity file.
py
diff --git a/paramiko/channel.py b/paramiko/channel.py index <HASH>..<HASH> 100644 --- a/paramiko/channel.py +++ b/paramiko/channel.py @@ -1348,9 +1348,6 @@ class ChannelFile(BufferedFile): class ChannelStderrFile(ChannelFile): - def __init__(self, channel, mode="r", bufsize=-1): - ChannelFile.__init__(s...
I don't understand why this was ever here, seems extraneous Our tests and fabric 2's test suites all pass with it gone, so. good enough?
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ docs_require = [ here = os.path.abspath(os.path.dirname(__file__)) try: - README = open(os.path.join(here, 'README.md')).read() + README = open(os.path.join(here, 'README.rst')).read() except IOError:...
Include REAMDE and license in setup.py.
py
diff --git a/switchboard.py b/switchboard.py index <HASH>..<HASH> 100644 --- a/switchboard.py +++ b/switchboard.py @@ -34,8 +34,6 @@ class switchboard(): print ('just wrote {} bytes to ' '{}').format(len(block[:bytes_writable]), s...
Added 'close' method to switchboard
py
diff --git a/isso/views/comments.py b/isso/views/comments.py index <HASH>..<HASH> 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals +from configparser import NoOptionError import collections import re import time @@ -139,8 +140,14 @@ class A...
Don't require new options to be present.
py
diff --git a/mozapkpublisher/test/test_push_apk.py b/mozapkpublisher/test/test_push_apk.py index <HASH>..<HASH> 100644 --- a/mozapkpublisher/test/test_push_apk.py +++ b/mozapkpublisher/test/test_push_apk.py @@ -82,7 +82,7 @@ def set_up_mocks(monkeypatch_, edit_service_mock_): def test_invalid_rollout_percentage(edit_s...
Fixes test broken from merge conflict
py
diff --git a/spyderlib/widgets/codeeditor/codeeditor.py b/spyderlib/widgets/codeeditor/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/codeeditor/codeeditor.py +++ b/spyderlib/widgets/codeeditor/codeeditor.py @@ -360,6 +360,7 @@ class CodeEditor(TextEditBaseWidget): text_after = sourcecode.re...
Editor/fix indentation + remove trailing spaces features: file was not shown as modified even if changes have been applied to it
py
diff --git a/src/provenance.py b/src/provenance.py index <HASH>..<HASH> 100644 --- a/src/provenance.py +++ b/src/provenance.py @@ -2,12 +2,42 @@ import inspect import hashlib import shelve # TODO: Use a better implementation for DB import __builtin__ +import pkg_resources +import sys def register(function): ...
Some initial explorations regarding extracting byte code and recurring over function calls.
py
diff --git a/paramiko/transport.py b/paramiko/transport.py index <HASH>..<HASH> 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1405,6 +1405,11 @@ class Transport (threading.Thread): self.auth_handler.abort() for event in self.channel_events.values(): ev...
[project @ <EMAIL><I>-8f<I>a<I>ecde<I>c] bug fix from mike looijmans: notify any thread waiting in accept() when the transport dies
py
diff --git a/ezibpy/ezibpy.py b/ezibpy/ezibpy.py index <HASH>..<HASH> 100644 --- a/ezibpy/ezibpy.py +++ b/ezibpy/ezibpy.py @@ -34,6 +34,10 @@ from ib.ext.Contract import Contract from ib.ext.Order import Order from ib.ext.ComboLeg import ComboLeg +# from ibapi.connection import Connection +# from ibapi.contract imp...
always start with time.time() as session's orderId
py
diff --git a/polymer/Polymer.py b/polymer/Polymer.py index <HASH>..<HASH> 100644 --- a/polymer/Polymer.py +++ b/polymer/Polymer.py @@ -498,7 +498,8 @@ class TaskMgr(object): state = "__EMPTY__" except Exception as e: tb_str = "".join(tb.format_exception(*(sys.exc_info())))...
rewrite xrange() as range()
py
diff --git a/products/bika/browser/clientfolder.py b/products/bika/browser/clientfolder.py index <HASH>..<HASH> 100644 --- a/products/bika/browser/clientfolder.py +++ b/products/bika/browser/clientfolder.py @@ -13,10 +13,10 @@ class ClientFolderContentsView(BikaFolderContentsView): show_editable_border = False ...
Remove 'field' and 'icon' from column list
py
diff --git a/ftr/version.py b/ftr/version.py index <HASH>..<HASH> 100644 --- a/ftr/version.py +++ b/ftr/version.py @@ -1,2 +1,2 @@ -version = '0.7.11' +version = '0.7.12'
version bump for <I>.
py
diff --git a/safe/impact_reports/report_mixin_base.py b/safe/impact_reports/report_mixin_base.py index <HASH>..<HASH> 100644 --- a/safe/impact_reports/report_mixin_base.py +++ b/safe/impact_reports/report_mixin_base.py @@ -112,9 +112,9 @@ class ReportMixin(object): message.add(table) t...
Align cells right for #<I> - in progress
py
diff --git a/analyzers/HybridAnalysis/HybridAnalysis_analyzer.py b/analyzers/HybridAnalysis/HybridAnalysis_analyzer.py index <HASH>..<HASH> 100755 --- a/analyzers/HybridAnalysis/HybridAnalysis_analyzer.py +++ b/analyzers/HybridAnalysis/HybridAnalysis_analyzer.py @@ -98,6 +98,8 @@ class VxStreamSandboxAnalyzer(Analyzer)...
Fixes #<I>: Return an error if HA returns an error that is not referring to rate limit.
py
diff --git a/andes/models/__init__.py b/andes/models/__init__.py index <HASH>..<HASH> 100644 --- a/andes/models/__init__.py +++ b/andes/models/__init__.py @@ -24,10 +24,10 @@ file_classes = OrderedDict([ ('dynload', ['ZIP', 'FLoad']), ('synchronous', ['GENCLS', 'GENROU']), ('governor', ['TG2', 'TGOV1', '...
Moved `VoltComp` group to before `Exciter`.
py
diff --git a/antfarm/urls.py b/antfarm/urls.py index <HASH>..<HASH> 100644 --- a/antfarm/urls.py +++ b/antfarm/urls.py @@ -41,7 +41,7 @@ class url_dispatcher(object): for pattern in self.patterns: m = pattern.regex.match(path) if m: - path.remaining_path = path[:m.end()...
Update urls.py Save to request, not path...
py
diff --git a/test/common_definitions.py b/test/common_definitions.py index <HASH>..<HASH> 100644 --- a/test/common_definitions.py +++ b/test/common_definitions.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- - +''' +This module contains definitions used by some of the test_ modules +''' from types import GeneratorType
Add doctstring to common_definitions
py
diff --git a/src/arcrest/agol/admin.py b/src/arcrest/agol/admin.py index <HASH>..<HASH> 100644 --- a/src/arcrest/agol/admin.py +++ b/src/arcrest/agol/admin.py @@ -1370,7 +1370,7 @@ class AGOL(BaseAGOLClass): #---------------------------------------------------------------------- - def updateWebmap(self, ag...
Renamed UpdateWebmap to UpdateItem
py
diff --git a/chess/variant.py b/chess/variant.py index <HASH>..<HASH> 100644 --- a/chess/variant.py +++ b/chess/variant.py @@ -461,6 +461,9 @@ class ThreeCheckBoard(chess.Board): if was_in_check: self.remaining_checks_co[self.turn] += 1 + def is_insufficient_material(self): + return se...
Anything but a king can potentially give check
py
diff --git a/delphin/ace.py b/delphin/ace.py index <HASH>..<HASH> 100644 --- a/delphin/ace.py +++ b/delphin/ace.py @@ -77,7 +77,7 @@ from datetime import datetime import locale from delphin import interface -from delphin.util import SExpr +from delphin import util from delphin.__about__ import __version__ as pydel...
Handle incomplete output from ACE w/ --tsdb-stdout This captures the situation where the parser tries to read past the end of the string. It's not guaranteed to work in the case that ACE is killed after printing a partial but valid set of s-expressions, in which case it will just record the partial information and mov...
py
diff --git a/kafka/future.py b/kafka/future.py index <HASH>..<HASH> 100644 --- a/kafka/future.py +++ b/kafka/future.py @@ -45,7 +45,7 @@ class Future(object): self.is_done = True for f in self._errbacks: try: - f(e) + f(self.exception) except Exc...
Call errbacks with future.exception
py
diff --git a/openpnm/core/Subdomain.py b/openpnm/core/Subdomain.py index <HASH>..<HASH> 100644 --- a/openpnm/core/Subdomain.py +++ b/openpnm/core/Subdomain.py @@ -5,9 +5,9 @@ import numpy as np class Subdomain(Base): def __getitem__(self, key): - # Find boss object (either phase or network) elem...
Fixes issue <I>: preventing use of network/phase keys by geom/physics
py
diff --git a/girder/external/mongodb_proxy.py b/girder/external/mongodb_proxy.py index <HASH>..<HASH> 100644 --- a/girder/external/mongodb_proxy.py +++ b/girder/external/mongodb_proxy.py @@ -61,7 +61,14 @@ class Executable(object): i = 0 while True: try: - return self.metho...
Make returned Cursors also be MongoProxies
py
diff --git a/Adafruit_GPIO/FT232H.py b/Adafruit_GPIO/FT232H.py index <HASH>..<HASH> 100644 --- a/Adafruit_GPIO/FT232H.py +++ b/Adafruit_GPIO/FT232H.py @@ -396,8 +396,8 @@ class SPI(object): self._ft232h = ft232h # Initialize chip select pin if provided to output high. if cs is not None: - ...
fix unwanted SPI cs assert during startup First set the chipselect to high then change the pin to output. By fixing the order the pin does not go low and then high for a short time.
py
diff --git a/wikipediaapi/__init__.py b/wikipediaapi/__init__.py index <HASH>..<HASH> 100644 --- a/wikipediaapi/__init__.py +++ b/wikipediaapi/__init__.py @@ -82,6 +82,8 @@ class Namespace(IntEnum): CATEGORY_TALK = 15 PORTAL = 100 PORTAL_TALK = 101 + PROJECT = 102 + REFERENCE = 104 BOOK = 108 ...
Adding namespaces <I> and <I> for french
py
diff --git a/thumbor/detectors/queued_detector/__init__.py b/thumbor/detectors/queued_detector/__init__.py index <HASH>..<HASH> 100644 --- a/thumbor/detectors/queued_detector/__init__.py +++ b/thumbor/detectors/queued_detector/__init__.py @@ -7,8 +7,9 @@ class QueuedDetector(BaseDetector): queue = UniqueQueue() ...
Only sending original image to queued detector
py
diff --git a/munigeo/api.py b/munigeo/api.py index <HASH>..<HASH> 100644 --- a/munigeo/api.py +++ b/munigeo/api.py @@ -219,6 +219,7 @@ class GeoModelAPIView(generics.GenericAPIView): class AdministrativeDivisionTypeSerializer(TranslatedModelSerializer): class Meta: model = AdministrativeDivisionType + ...
Compatibility with DRF > <I>. Add fields = '__all__' to serializers.
py
diff --git a/django_extensions/management/commands/graph_models.py b/django_extensions/management/commands/graph_models.py index <HASH>..<HASH> 100644 --- a/django_extensions/management/commands/graph_models.py +++ b/django_extensions/management/commands/graph_models.py @@ -49,7 +49,7 @@ class Command(BaseCommand): ...
Error message for PyGraphviz is fixed
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setup( long_description=read('README.rst'), license='BSD', keywords='Exchange EWS autodiscover', - install_requires=['requests>=2.7', 'requests-ntlm>=0.2.0', 'dnspython3>=1.12.0', 'pytz', 'lxml...
sqlitedict is no longer a dependency
py
diff --git a/superset/utils/network.py b/superset/utils/network.py index <HASH>..<HASH> 100644 --- a/superset/utils/network.py +++ b/superset/utils/network.py @@ -27,16 +27,19 @@ def is_port_open(host: str, port: int) -> bool: Test if a given port in a host is open. """ # pylint: disable=invalid-name - ...
fix(utils): use getaddrinfo response to support dual-stack port checks (#<I>)
py
diff --git a/safe/impact_functions/generic/classified_polygon_landcover/impact_function.py b/safe/impact_functions/generic/classified_polygon_landcover/impact_function.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/generic/classified_polygon_landcover/impact_function.py +++ b/safe/impact_functions/generic/c...
Maybe this will make nosetests show the debug output
py
diff --git a/src/runway/commands/__init__.py b/src/runway/commands/__init__.py index <HASH>..<HASH> 100644 --- a/src/runway/commands/__init__.py +++ b/src/runway/commands/__init__.py @@ -7,6 +7,7 @@ from .runway import init # noqa from .runway import preflight # noqa from .runway import run_python # noqa from .ru...
fix broken run-python command
py
diff --git a/taxi/settings.py b/taxi/settings.py index <HASH>..<HASH> 100755 --- a/taxi/settings.py +++ b/taxi/settings.py @@ -15,7 +15,7 @@ class Settings: } DEFAULTS = { - 'auto_fill_days': '1,2,3,4,5', + 'auto_fill_days': '0,1,2,3,4', 'date_format': '%d/%m/%Y', ...
Fix default value for auto_fill_days to all working days (fixes #<I>) Bug caused by <I>ff0def<I>e<I>a<I>f<I>a<I>a<I>d
py
diff --git a/abydos/distance/_gilbert_wells.py b/abydos/distance/_gilbert_wells.py index <HASH>..<HASH> 100644 --- a/abydos/distance/_gilbert_wells.py +++ b/abydos/distance/_gilbert_wells.py @@ -81,7 +81,6 @@ class GilbertWells(_TokenDistance): self, alphabet=None, tokenizer=None, - in...
removed non-crisp intersections support from GilbertWells
py
diff --git a/lib/reda/utils/fix_sign_with_K.py b/lib/reda/utils/fix_sign_with_K.py index <HASH>..<HASH> 100644 --- a/lib/reda/utils/fix_sign_with_K.py +++ b/lib/reda/utils/fix_sign_with_K.py @@ -93,6 +93,9 @@ def fix_sign_with_K(dataframe): -85.02069 -183.25 in radic column 6 and 7, should get -58 mrad whe...
dont change a, b, m, n to floats in fix_Sign_with_K
py
diff --git a/livelossplot/keras_plot.py b/livelossplot/keras_plot.py index <HASH>..<HASH> 100644 --- a/livelossplot/keras_plot.py +++ b/livelossplot/keras_plot.py @@ -38,8 +38,19 @@ class PlotLossesKeras(Callback): self.max_cols * self.cell_size[0], ((len(self.base_metrics) + 1) // sel...
Keras loss can be a list or dict (issue 3)
py
diff --git a/molecule/command/converge.py b/molecule/command/converge.py index <HASH>..<HASH> 100644 --- a/molecule/command/converge.py +++ b/molecule/command/converge.py @@ -42,7 +42,7 @@ class Converge(base.Base): validation of input. Options passed on the CLI override options provided in provisioner's `op...
Corrected converge docs with --tags
py
diff --git a/livvkit/util/functions.py b/livvkit/util/functions.py index <HASH>..<HASH> 100644 --- a/livvkit/util/functions.py +++ b/livvkit/util/functions.py @@ -37,6 +37,8 @@ import shutil import fnmatch from datetime import datetime +import json_tricks + import livvkit @@ -155,7 +157,7 @@ def write_json(dat...
Use the json_tricks package to handle serialize numpy data Numpy arrays cannot normally be serialized using the stdlib json pacakge, but the json_tricks package allows numpy arrays to be serialized as standard python lists.
py
diff --git a/nidmresults/objects/constants.py b/nidmresults/objects/constants.py index <HASH>..<HASH> 100644 --- a/nidmresults/objects/constants.py +++ b/nidmresults/objects/constants.py @@ -196,6 +196,7 @@ NIDM_CONTRAST_ESTIMATION = NIDM['NIDM_0000001'] NIDM_CONTRAST_MAP = NIDM['NIDM_0000002'] STATO_OLS = OBO['STA...
Constant STATO_WLS was missing
py
diff --git a/bettercache/views.py b/bettercache/views.py index <HASH>..<HASH> 100644 --- a/bettercache/views.py +++ b/bettercache/views.py @@ -13,21 +13,21 @@ class BetterView(CachingMixin): response, expired = self.get_cache(request) # send off the celery task if it's expired if ...
[CMSPERF-<I>] now actually call it
py
diff --git a/openquake/risk/classical_psha_based.py b/openquake/risk/classical_psha_based.py index <HASH>..<HASH> 100644 --- a/openquake/risk/classical_psha_based.py +++ b/openquake/risk/classical_psha_based.py @@ -29,7 +29,7 @@ from numpy import subtract, mean from openquake import shapes from openquake.risk.commo...
after testing a bit, it's better to maintain MemoizeMutable, it's faster Former-commit-id: ec<I>ecfe7f0c3e<I>dbfa<I>ae<I>b<I>
py
diff --git a/synapse/common.py b/synapse/common.py index <HASH>..<HASH> 100644 --- a/synapse/common.py +++ b/synapse/common.py @@ -57,6 +57,7 @@ def reqpath(*paths): path = genpath(*paths) if not os.path.isfile(path): raise NoSuchFile(path) + return path def reqfile(*paths): path = genpath...
make reqpath() return the path
py
diff --git a/rest_hooks/admin.py b/rest_hooks/admin.py index <HASH>..<HASH> 100644 --- a/rest_hooks/admin.py +++ b/rest_hooks/admin.py @@ -17,6 +17,10 @@ class HookForm(forms.ModelForm): """ ADMIN_EVENTS = [(x, x) for x in HOOK_EVENTS.keys()] + class Meta: + model = Hook + fields = ['user',...
Add Meta class definition to HookForm Meta class definition defines Hook model and well as fields. This is a requirement for ModelForm validation.
py
diff --git a/html5lib/html5parser.py b/html5lib/html5parser.py index <HASH>..<HASH> 100644 --- a/html5lib/html5parser.py +++ b/html5lib/html5parser.py @@ -418,10 +418,7 @@ def getPhases(debug): def wrapped(self, *args, **kwargs): if function.__name__.startswith("process") and len(args) > 0: ...
Remove unnecessary/empty try/except construct The exception is caught and always re-raised without any additional action. Simply let the original exception bubble up instead.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -508,6 +508,7 @@ def default_hook(config): description = read_description_file(config) description = translit.downgrade(description) config["metadata"]["description"] = descri...
Mutually exclusive description and description-file when running bdist_wininst
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -903,13 +903,13 @@ class AESFuncs(object): return {} if 'mine_get' in self.opts: # If master side acl defined. - if not isinstance(self.opts['mine_get'],dic...
Fix pylint issues in master.py
py
diff --git a/workbench/workers/rekall_adapter/rekall_adapter.py b/workbench/workers/rekall_adapter/rekall_adapter.py index <HASH>..<HASH> 100644 --- a/workbench/workers/rekall_adapter/rekall_adapter.py +++ b/workbench/workers/rekall_adapter/rekall_adapter.py @@ -22,6 +22,10 @@ def gsleep(): print '*** Gevent Sleep...
make sure test don't barf out too much text
py
diff --git a/doc/source/conf.py b/doc/source/conf.py index <HASH>..<HASH> 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -18,6 +18,26 @@ import sys, os # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.')) + +try: + from mock import...
DOC: Added mock dependencies for readthedocs
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -1503,6 +1503,7 @@ def managed(name, except Exception as exc: ret['changes'] = {} log.debug(traceback.format_exc()) + os.remove(tmp_file...
delete tmp file when file.managed has check_cmd arg
py
diff --git a/allauth/account/adapter.py b/allauth/account/adapter.py index <HASH>..<HASH> 100644 --- a/allauth/account/adapter.py +++ b/allauth/account/adapter.py @@ -407,7 +407,7 @@ class DefaultAccountAdapter(object): def is_safe_url(self, url): from django.utils.http import is_safe_url - retur...
fix(django): allowed_hosts is now a required argument of is_safe_url
py
diff --git a/pymatgen/analysis/structure_analyzer.py b/pymatgen/analysis/structure_analyzer.py index <HASH>..<HASH> 100644 --- a/pymatgen/analysis/structure_analyzer.py +++ b/pymatgen/analysis/structure_analyzer.py @@ -54,8 +54,8 @@ def average_coordination_number(structures, freq=10): Dictionary of elements a...
Update structure_analyzer.py Change initialization of coordination number dictionary keys to species rather than elements to match with species_string use later on.
py
diff --git a/oedialect/engine.py b/oedialect/engine.py index <HASH>..<HASH> 100644 --- a/oedialect/engine.py +++ b/oedialect/engine.py @@ -17,7 +17,7 @@ class OEConnection(): Connection methods """ - def __init__(self, host='localhost', port=80, user=''): + def __init__(self, host='localhost', por...
Raise compatibility of oedialect Catch also HTTP<I>x Add parameters to Connection.__init__ for compatibility
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,6 @@ with open('README.rst') as file: long_description = file.read() requires = [ - 'boto>=2.32.0', 'boto3>=1.2.3', 'termcolor>=1.1.0', 'python-dateutil>=2.4.2',
issue #<I> - remove boto from requirements
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open('README.rst') as file: long_description = file.read() setup(name='geventconnpool', - version = "0.1b", + version = "0.2", description = 'TCP connection pool for gevent', long_desc...
Bumb version (workaround bug in pip)
py
diff --git a/spiceypy/utils/support_types.py b/spiceypy/utils/support_types.py index <HASH>..<HASH> 100644 --- a/spiceypy/utils/support_types.py +++ b/spiceypy/utils/support_types.py @@ -582,7 +582,7 @@ class SpiceCell(Structure): def __iter__(self): getter = SpiceCell.DATATYPES_GET[self.dtype] l...
fixing use of range to use six's version, should be safer/faster (#<I>)
py
diff --git a/tikzplotlib/axes.py b/tikzplotlib/axes.py index <HASH>..<HASH> 100644 --- a/tikzplotlib/axes.py +++ b/tikzplotlib/axes.py @@ -6,7 +6,7 @@ from . import color class Axes: - def __init__(self, data, obj): + def __init__(self, data, obj): # noqa: C901 """Returns the PGFPlots code for an a...
Another small code modification for lint
py