diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/openquake/calculators/hazard/disagg/core.py b/openquake/calculators/hazard/disagg/core.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/hazard/disagg/core.py +++ b/openquake/calculators/hazard/disagg/core.py @@ -184,7 +184,7 @@ class DisaggHazardCalculator(haz_general.BaseHazardCalculatorNext): ...
calcs/hazard/disagg/core: Removed a TODO and added a comment to answer the question in the TODO.
py
diff --git a/src/python/pants/backend/jvm/tasks/scalastyle.py b/src/python/pants/backend/jvm/tasks/scalastyle.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/jvm/tasks/scalastyle.py +++ b/src/python/pants/backend/jvm/tasks/scalastyle.py @@ -69,6 +69,8 @@ class Scalastyle(NailgunTask): help='...
Pass jvm_options to scalastyle - Pass jvm_options to scalastyle as a quick fix until a JVM subsystem is available. We're in the final stages of merging our two repos, and we now have enough code subject to scalastyle in a single run that we noticed that it was using unbounded memory. Testing Done: validated that the...
py
diff --git a/seed_stage_based_messaging/__init__.py b/seed_stage_based_messaging/__init__.py index <HASH>..<HASH> 100644 --- a/seed_stage_based_messaging/__init__.py +++ b/seed_stage_based_messaging/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.9.20' +__version__ = '0.9.21' VERSION = __version__
Bumped to version <I>
py
diff --git a/src/ossos-pipeline/ossos/ssos.py b/src/ossos-pipeline/ossos/ssos.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/ssos.py +++ b/src/ossos-pipeline/ossos/ssos.py @@ -2,10 +2,13 @@ __author__ = 'Michele Bannister, JJ Kavelaars' import datetime import os +import pprint import warnings fro...
Added back some imports lost during the merge.
py
diff --git a/pyautogui/_pyautogui_x11.py b/pyautogui/_pyautogui_x11.py index <HASH>..<HASH> 100644 --- a/pyautogui/_pyautogui_x11.py +++ b/pyautogui/_pyautogui_x11.py @@ -202,6 +202,7 @@ keyboardMapping.update({ 'del': _display.keysym_to_keycode(Xlib.XK.string_to_keysym('Delete')), 'delete': ...
Add alias to 'win' key for linux implementation
py
diff --git a/werkzeug/serving.py b/werkzeug/serving.py index <HASH>..<HASH> 100644 --- a/werkzeug/serving.py +++ b/werkzeug/serving.py @@ -69,6 +69,7 @@ class BaseRequestHandler(BaseHTTPRequestHandler, object): 'wsgi.multithread': self.server.multithread, 'wsgi.multiprocess': self.serve...
Server now sets the `SERVER_SOFTWARE` environment key.
py
diff --git a/__pkginfo__.py b/__pkginfo__.py index <HASH>..<HASH> 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -31,7 +31,7 @@ classifiers = ['Development Status :: 4 - Beta', author = "Rocky Bernstein, Hartmut Goebel, John Aycock, and others" author_email = "rb@dustyfeet.com" ftp_url ...
Back off spark <I> for now
py
diff --git a/timepiece/admin.py b/timepiece/admin.py index <HASH>..<HASH> 100644 --- a/timepiece/admin.py +++ b/timepiece/admin.py @@ -52,8 +52,9 @@ class ProjectContractAdmin(admin.ModelAdmin): def hours_unassigned(self, obj): return obj.num_hours - obj.hours_assigned - def save_model(self, request,...
save m2m relationship in admin before running projection --HG-- branch : project-budgeting
py
diff --git a/issuetracker/test_issuetracker.py b/issuetracker/test_issuetracker.py index <HASH>..<HASH> 100644 --- a/issuetracker/test_issuetracker.py +++ b/issuetracker/test_issuetracker.py @@ -4,7 +4,7 @@ import re import py.test -from mock import Mock +from mock import Mock, mocksignature from docutils import n...
Also test the call signature of get_issue_information (using "mocksignature")
py
diff --git a/helusers/jwt.py b/helusers/jwt.py index <HASH>..<HASH> 100644 --- a/helusers/jwt.py +++ b/helusers/jwt.py @@ -26,7 +26,8 @@ def patch_jwt_settings(): defaults['JWT_SECRET_KEY'] = app.secret defaults['JWT_AUDIENCE'] = app.client_id -patch_jwt_settings() +# Disable automatic settings patching for...
Disable rest_framework_jwt settings patching for now
py
diff --git a/quilt/data.py b/quilt/data.py index <HASH>..<HASH> 100644 --- a/quilt/data.py +++ b/quilt/data.py @@ -49,6 +49,10 @@ class DataNode(object): output = [cinfo, finfo, pinfo] + groups + dfs return '\n'.join(output) + def __dir__(self): + # https://mail.python.org/pipermail/python...
Implement `__dir__` for data nodes (#<I>) Also change the return type of `_keys` to a list, for consistency with `_groups` and `_dfs`.
py
diff --git a/stacker/tests/test_config.py b/stacker/tests/test_config.py index <HASH>..<HASH> 100644 --- a/stacker/tests/test_config.py +++ b/stacker/tests/test_config.py @@ -451,6 +451,21 @@ stacks: self.assertEqual( doc["stacks"][0]["variables"]["CIDR"], "192.168.2.0/24" ) + yaml...
Allow var dupes anchor test (#<I>) * Allow duplicate keys for most mappings except stacks. modified: stacker/tests/test_config.py modified: stacker/util.py * Proof that YAML anchor overides still work! modified: stacker/tests/test_config.py
py
diff --git a/steam_idle_qt/QIdle.py b/steam_idle_qt/QIdle.py index <HASH>..<HASH> 100644 --- a/steam_idle_qt/QIdle.py +++ b/steam_idle_qt/QIdle.py @@ -145,7 +145,7 @@ class MultiIdle(BaseIdle): self.logger.debug('doStartIdle: started %s' %p) if len(self.idleChilds) < len(apps): ...
Lower speep between child spawns
py
diff --git a/test/test_autopep8.py b/test/test_autopep8.py index <HASH>..<HASH> 100755 --- a/test/test_autopep8.py +++ b/test/test_autopep8.py @@ -2251,6 +2251,20 @@ class TestOptions(unittest.TestCase): self.assertEqual(f.read(), fixed) f.close() + def test_in_place_with_empty_file(self): + ...
Add test case that fails on Python 2
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,6 @@ from distutils.core import setup setup(name='cleanco', - version='0.2', + version='0.3', py_modules=['cleanco'], ) \ No newline at end of file
Changed version type Forgot to do this, whoops.
py
diff --git a/pynetgear/__init__.py b/pynetgear/__init__.py index <HASH>..<HASH> 100644 --- a/pynetgear/__init__.py +++ b/pynetgear/__init__.py @@ -573,8 +573,16 @@ class Netgear(object): message = SOAP_REQUEST.format(session_id=SESSION_ID, body=body) try: - response = requests.post(self.s...
Fix ssl error when unautorized (#<I>) - if an error occurs, invalidade the cookie such that on the next attempt a re-login is tried - if a SSL error occurs, catch it, invalidade the cookie and try to re-login and repost the request, if it is an actual SSL error it will fail again and the SSL error will be loged, howe...
py
diff --git a/bypy.py b/bypy.py index <HASH>..<HASH> 100755 --- a/bypy.py +++ b/bypy.py @@ -1228,8 +1228,8 @@ class ByPy(object): pr(tb) perr("Function: {}".format(act.__name__)) perr("Website parameters: {}".format(pars)) - if r: - perr("HTTP Status Code: {}".format(r.status_code)) + if hasattr(r, '...
<Response [<I>]> evaluates to False
py
diff --git a/websockets/test_http.py b/websockets/test_http.py index <HASH>..<HASH> 100644 --- a/websockets/test_http.py +++ b/websockets/test_http.py @@ -4,6 +4,7 @@ import tulip import tulip.test_utils from .http import * +from .http import read_message # private API class HTTPTests(tulip.test_utils.Log...
Fix tests after making a function private.
py
diff --git a/fitsio/fitslib.py b/fitsio/fitslib.py index <HASH>..<HASH> 100644 --- a/fitsio/fitslib.py +++ b/fitsio/fitslib.py @@ -23,25 +23,12 @@ See the main docs at https://github.com/esheldon/fitsio from __future__ import with_statement, print_function import sys, os import numpy -from . import _fitsio_wrap imp...
moved FITSRuntimeWarning and cfitsio_version to util
py
diff --git a/moderngl/context.py b/moderngl/context.py index <HASH>..<HASH> 100644 --- a/moderngl/context.py +++ b/moderngl/context.py @@ -162,7 +162,7 @@ class Context: raise TypeError() def __repr__(self): - return '<Context version_code={}>'.format(self.version_code) + return '<Context ...
Context: Include object id in repr
py
diff --git a/client/tts.py b/client/tts.py index <HASH>..<HASH> 100644 --- a/client/tts.py +++ b/client/tts.py @@ -419,8 +419,13 @@ class MaryTTS(AbstractTTSEngine): @property def languages(self): - r = self.session.get(self._makeurl('/locales')) - r.raise_for_status() + try: + ...
Improve logging on communication failure with marytts server
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -3,3 +3,6 @@ import os if os.name == 'nt': import win32file win32file._setmaxstdio(2048) +else: + import resource + resource.setrlimit(resource.RLIMIT_NOFILE, (2048, 2048))
test: don't forget to increse ulimit for opened files
py
diff --git a/pyocd/trace/swv.py b/pyocd/trace/swv.py index <HASH>..<HASH> 100644 --- a/pyocd/trace/swv.py +++ b/pyocd/trace/swv.py @@ -125,6 +125,11 @@ class SWVReader(threading.Thread): thread runs, it reads SWO data from the probe and passes it to the SWO parser created in init(). When the thread is...
Stop SWO before starting it. This addresses the case where the probe already had SWO running, which for CMSIS-DAP will cause a command error if you attempt to restart it.
py
diff --git a/master/buildbot/sourcestamp.py b/master/buildbot/sourcestamp.py index <HASH>..<HASH> 100644 --- a/master/buildbot/sourcestamp.py +++ b/master/buildbot/sourcestamp.py @@ -118,8 +118,8 @@ class SourceStamp(util.ComparableMixin, styles.Versioned): assert int(patch[0]) != -1 self.branch =...
SourceStamp: Be more careful with default arguments to __init__. The old code blew up if passed an explict None for project or repository.
py
diff --git a/mama_cas/response.py b/mama_cas/response.py index <HASH>..<HASH> 100644 --- a/mama_cas/response.py +++ b/mama_cas/response.py @@ -93,7 +93,7 @@ class ValidationResponse(CasResponseBase): auth_failure.set('code', error.code) auth_failure.text = str(error) - return etree.to...
Remove method keyword argument from tostring() This is not present in Python <I> and defaults to XML in later versions of Python.
py
diff --git a/normalizr/__init__.py b/normalizr/__init__.py index <HASH>..<HASH> 100644 --- a/normalizr/__init__.py +++ b/normalizr/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.1.7' +__version__ = '0.1.7.1' from normalizr.normalizr import Normalizr \ No newline at end of file
Updates version to <I>
py
diff --git a/securesystemslib/ecdsa_keys.py b/securesystemslib/ecdsa_keys.py index <HASH>..<HASH> 100755 --- a/securesystemslib/ecdsa_keys.py +++ b/securesystemslib/ecdsa_keys.py @@ -290,9 +290,11 @@ def verify_signature(public_key, method, signature, data): raise securesystemslib.exceptions.FormatError('Invalid...
Fix unit test failureintroduced by backwards-incompatible change introduced by cryptography <I>
py
diff --git a/treebeard/admin.py b/treebeard/admin.py index <HASH>..<HASH> 100644 --- a/treebeard/admin.py +++ b/treebeard/admin.py @@ -32,9 +32,9 @@ class TreeAdmin(admin.ModelAdmin): def get_queryset(self, request): if issubclass(self.model, AL_Node): # AL Trees return a list instead of a Qu...
call the proper super.get_queryset method in the admin for AL trees
py
diff --git a/cmsplugin_cascade/plugin_base.py b/cmsplugin_cascade/plugin_base.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/plugin_base.py +++ b/cmsplugin_cascade/plugin_base.py @@ -178,8 +178,12 @@ class CascadePluginBase(six.with_metaclass(CascadePluginBaseMetaclass, CMSPlugin """ Build the...
In get_form, do not override `widgets` and `label`; merge them
py
diff --git a/hal/files/models.py b/hal/files/models.py index <HASH>..<HASH> 100644 --- a/hal/files/models.py +++ b/hal/files/models.py @@ -270,7 +270,7 @@ class Document(FileSystem): """ p, name = os.path.dirname(os.path.abspath(self.path)), os.path.basename(self.path) - return p, name + ...
fixed ending / in path separator
py
diff --git a/src/pybel_tools/selection/induce_subgraph.py b/src/pybel_tools/selection/induce_subgraph.py index <HASH>..<HASH> 100644 --- a/src/pybel_tools/selection/induce_subgraph.py +++ b/src/pybel_tools/selection/induce_subgraph.py @@ -10,13 +10,16 @@ import numpy as np from pybel import BELGraph from pybel.consta...
Update reference to pybel functions
py
diff --git a/angr/factory.py b/angr/factory.py index <HASH>..<HASH> 100644 --- a/angr/factory.py +++ b/angr/factory.py @@ -76,6 +76,8 @@ class AngrObjectFactory(object): if opt_level is None: opt_level = 1 if o.OPTIMIZE_IR in state.options else 0 + force_bbl_addr = block_opts.pop('force_b...
force bbl address correct on self-modifying code
py
diff --git a/c7n/actions/autotag.py b/c7n/actions/autotag.py index <HASH>..<HASH> 100644 --- a/c7n/actions/autotag.py +++ b/c7n/actions/autotag.py @@ -97,14 +97,14 @@ class AutoTagUser(EventAction): return event = event['detail'] utype = event['userIdentity']['type'] - if utype not...
aws - auto tag support federated user (#<I>)
py
diff --git a/pycookiecheat/pycookiecheat.py b/pycookiecheat/pycookiecheat.py index <HASH>..<HASH> 100755 --- a/pycookiecheat/pycookiecheat.py +++ b/pycookiecheat/pycookiecheat.py @@ -83,19 +83,19 @@ def chrome_cookies(url, cookie_file=None): except ImportError: my_pass = 'peanuts' else: -...
Go through all keyrings For some reason it wasn't working when I tried to iterate through them differently.
py
diff --git a/datatable/dt.py b/datatable/dt.py index <HASH>..<HASH> 100644 --- a/datatable/dt.py +++ b/datatable/dt.py @@ -451,7 +451,7 @@ class DataTable(object): :param dts: one or more datatable to append. These datatables should have the same columnar structure as the current datatable (unle...
Fix bug where appending datatable with more columns than the current produced an exception. Closes #<I> (#<I>)
py
diff --git a/gwpy/tests/test_array.py b/gwpy/tests/test_array.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_array.py +++ b/gwpy/tests/test_array.py @@ -71,10 +71,14 @@ class CommonTests(object): kwargs.setdefault('copy', False) return self.TEST_CLASS(self.data, *args, **kwargs) + def asser...
tests: added assertQuantityEqual utility method
py
diff --git a/gtkmvco/tests/deprec_observes.py b/gtkmvco/tests/deprec_observes.py index <HASH>..<HASH> 100644 --- a/gtkmvco/tests/deprec_observes.py +++ b/gtkmvco/tests/deprec_observes.py @@ -79,7 +79,7 @@ class DeprecatedObservesTest (unittest.TestCase): } for p in 'p1 p2 p3 p4'.split(...
TEST Fixed wrt latest change in the API
py
diff --git a/spyder/plugins/plots/widgets/figurebrowser.py b/spyder/plugins/plots/widgets/figurebrowser.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/plots/widgets/figurebrowser.py +++ b/spyder/plugins/plots/widgets/figurebrowser.py @@ -737,8 +737,13 @@ class ThumbnailScrollBar(QFrame): Update the thumbn...
Extend explantion in Note for scrollbar resizing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -60,18 +60,18 @@ setup( # eg: 'keyword1', 'keyword2', 'keyword3', ], install_requires=[ - 'click==7.1.1', - 'cookiecutter==1.7.0', - 'elasticsearch-dsl==7.1.0', - 'flask==1.1.1', ...
Change package dependency versions to be future-proof
py
diff --git a/py3status/modules/taskwarrior.py b/py3status/modules/taskwarrior.py index <HASH>..<HASH> 100644 --- a/py3status/modules/taskwarrior.py +++ b/py3status/modules/taskwarrior.py @@ -5,7 +5,7 @@ Display tasks currently running in taskwarrior. Configuration parameters: cache_timeout: refresh interval for t...
taskwarrior: task_args -> filter
py
diff --git a/analyzers/FileInfo/submodules/submodule_oletools.py b/analyzers/FileInfo/submodules/submodule_oletools.py index <HASH>..<HASH> 100644 --- a/analyzers/FileInfo/submodules/submodule_oletools.py +++ b/analyzers/FileInfo/submodules/submodule_oletools.py @@ -29,7 +29,10 @@ class OLEToolsSubmodule(SubmoduleBasec...
Fixes error produced through unescaped olevba_code
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( packages=find_packages(), ext_package="clips", setup_requires=["cffi>=1.0.0"], - install_requires=["cffi>=1.0.0"], + install_requires=["cffi>=1.0.0", "enum34"], cffi_modules=["clip...
Add Enum backport dependency for python 2
py
diff --git a/blockstack_client/__init__.py b/blockstack_client/__init__.py index <HASH>..<HASH> 100644 --- a/blockstack_client/__init__.py +++ b/blockstack_client/__init__.py @@ -80,10 +80,3 @@ from backend.queue import in_queue, queue_append, queue_findone, queue_findall, # legacy compatibility import virtualchain ...
don't worry about setting segwit support at the import level; only worry about it in the wallet
py
diff --git a/pout/__init__.py b/pout/__init__.py index <HASH>..<HASH> 100644 --- a/pout/__init__.py +++ b/pout/__init__.py @@ -119,6 +119,7 @@ def tofile(path=""): finally: stream = orig_stream +f = tofile def v(*args, **kwargs):
alias tofile to f
py
diff --git a/Pynac/Core.py b/Pynac/Core.py index <HASH>..<HASH> 100644 --- a/Pynac/Core.py +++ b/Pynac/Core.py @@ -136,9 +136,9 @@ class Pynac(object): self.dynacProc.stdin.write((str2write+'\r\n').encode()) except IOError: break - self.dynacProc.stdin.c...
Close stdin after the wait()
py
diff --git a/pwnypack/asm.py b/pwnypack/asm.py index <HASH>..<HASH> 100644 --- a/pwnypack/asm.py +++ b/pwnypack/asm.py @@ -210,7 +210,7 @@ def asm(code, addr=0, syntax=None, target=None, gnu_binutils_prefix=None): stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) - ...
Fix invoking GNU as on python 3.
py
diff --git a/gtdoit/logbook.py b/gtdoit/logbook.py index <HASH>..<HASH> 100644 --- a/gtdoit/logbook.py +++ b/gtdoit/logbook.py @@ -11,6 +11,9 @@ import gtdoit.messages.events_pb2 as events_pb2 import gtdoit.messages.eventhandling_pb2 as eventhandling_pb2 +logger = logging.getLogger(__name__) + + class LogBookKeyE...
Warn if struggling to generate unique event id The warning is printed using the Python logging module.
py
diff --git a/sacred/experiment.py b/sacred/experiment.py index <HASH>..<HASH> 100644 --- a/sacred/experiment.py +++ b/sacred/experiment.py @@ -41,6 +41,11 @@ class Ingredient(object): self.mainfile = caller_globals.get('__file__') or "" if self.mainfile: self.mainfile = os.path.abspath(se...
added check to replace .pyc file with .py file as mainfile. fixes #<I>
py
diff --git a/src/plotypus/utils.py b/src/plotypus/utils.py index <HASH>..<HASH> 100644 --- a/src/plotypus/utils.py +++ b/src/plotypus/utils.py @@ -1,5 +1,6 @@ from os import makedirs from os.path import isdir +from numpy import resize def make_sure_path_exists(path): """Creates the supplied path. Raises ...
Added a function for making column vectors
py
diff --git a/scapy/layers/tls/keyexchange.py b/scapy/layers/tls/keyexchange.py index <HASH>..<HASH> 100644 --- a/scapy/layers/tls/keyexchange.py +++ b/scapy/layers/tls/keyexchange.py @@ -746,7 +746,7 @@ class ClientDiffieHellmanPublic(_GenericTLSSessionInheritance): if s.client_kx_privkey and s.server_kx_pub...
Fix an error in the PMS derivation for DHE key exchange in TLS. The RFC states that the leading zero bytes must be stripped when storing the Pre Master Secret. This is bad practice, since it leads to exploitable timing attacks such as the Raccoon Attack (<URL>). However, this is the standard and the current implementa...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -54,5 +54,5 @@ setuptools.setup( ], data_files=[ ], - python_requires=">=3.9", + python_requires=">=3.10", )
new version of python
py
diff --git a/MambuPy/rest/mambustruct.py b/MambuPy/rest/mambustruct.py index <HASH>..<HASH> 100644 --- a/MambuPy/rest/mambustruct.py +++ b/MambuPy/rest/mambustruct.py @@ -780,7 +780,7 @@ class MambuStruct(object): data = l except TypeError: pass - except Exc...
hotfix added alias to exception
py
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/tests/test_mainwindow.py +++ b/spyder/app/tests/test_mainwindow.py @@ -162,8 +162,8 @@ def main_window(request): @pytest.mark.slow @pytest.mark.use_introspection @flaky(max_runs=3) -@py...
Testing: Skip test_calltip on Python 3 and PyQt < <I> b/c it's failing
py
diff --git a/caravel/models.py b/caravel/models.py index <HASH>..<HASH> 100644 --- a/caravel/models.py +++ b/caravel/models.py @@ -3,7 +3,6 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals -import re import func...
Do not shadow _ function. (#<I>)
py
diff --git a/SoftLayer/tests/fixtures/Product_Package.py b/SoftLayer/tests/fixtures/Product_Package.py index <HASH>..<HASH> 100644 --- a/SoftLayer/tests/fixtures/Product_Package.py +++ b/SoftLayer/tests/fixtures/Product_Package.py @@ -857,7 +857,7 @@ def get_bmc_categories_mock(): disk_prices2 = [ { - ...
Changes item id for disk2 so tests would cover it
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,5 +11,6 @@ setup( author_email='brian@brianthicks.com', license='MIT', packages=['emit'], + scripts=['emit/bin/emit_digraph'], zip_safe=False )
add emit_digraph script directive
py
diff --git a/lib/numina/diskstorage.py b/lib/numina/diskstorage.py index <HASH>..<HASH> 100644 --- a/lib/numina/diskstorage.py +++ b/lib/numina/diskstorage.py @@ -36,6 +36,6 @@ def _store_fits(obj, where='file.fits'): def _store_map(obj, where='products.json'): f = open(where, 'w+') try: - json.dump(...
Add indentation to JSON dump
py
diff --git a/tcconfig/traffic_control.py b/tcconfig/traffic_control.py index <HASH>..<HASH> 100644 --- a/tcconfig/traffic_control.py +++ b/tcconfig/traffic_control.py @@ -183,6 +183,12 @@ class TrafficControl(object): }, } + def __is_use_iptables(self): + return all([ + self...
Add a method to check whether to use iptables
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ NAME = PACKAGE.replace('_', '-') INSTALL_REQUIRES = [ 'celery', 'requests', - 'datapackage>=1.0', + 'datapackage>=1.0.2', 'tableschema>=1.0.0', 'tableschema-sql>=0.9', 'pyyaml',
Bump datapackage version to <I>
py
diff --git a/aiida/orm/calculation/job/cp2k.py b/aiida/orm/calculation/job/cp2k.py index <HASH>..<HASH> 100644 --- a/aiida/orm/calculation/job/cp2k.py +++ b/aiida/orm/calculation/job/cp2k.py @@ -270,13 +270,9 @@ class CP2KCalculation(JobCalculation): raise InputValidationError("parent_calc_folder, if s...
Removing some redundant code used for a debugging
py
diff --git a/rio_color/operations.py b/rio_color/operations.py index <HASH>..<HASH> 100644 --- a/rio_color/operations.py +++ b/rio_color/operations.py @@ -7,7 +7,7 @@ from .colorspace import saturate_rgb # Color manipulation functions def sigmoidal(arr, contrast, bias): - """ + r""" Sigmoidal contrast is...
Mark docstrings with math directives as "raw"
py
diff --git a/gandi/cli/modules/paas.py b/gandi/cli/modules/paas.py index <HASH>..<HASH> 100644 --- a/gandi/cli/modules/paas.py +++ b/gandi/cli/modules/paas.py @@ -225,7 +225,7 @@ class Paas(GandiModule, SshkeyHelper): return else: cls.echo('You should init your git repo when the p...
paas: fixing english typo in error message no need for space here
py
diff --git a/tests/test_installer.py b/tests/test_installer.py index <HASH>..<HASH> 100644 --- a/tests/test_installer.py +++ b/tests/test_installer.py @@ -10,8 +10,7 @@ class TestPackageInstaller(object): self.tmpdir = tempfile.mkdtemp() def tearDown(self): - #shutil.rmtree(self.tmpdir) - ...
Ooops, reenable cleaning temp dir after tests
py
diff --git a/timeside/tests/testlowlevelstreaming.py b/timeside/tests/testlowlevelstreaming.py index <HASH>..<HASH> 100644 --- a/timeside/tests/testlowlevelstreaming.py +++ b/timeside/tests/testlowlevelstreaming.py @@ -45,9 +45,9 @@ class TestLowLevel(TestCase): encoder = Mp3Encoder(dest1, streaming=True) ...
timeside/tests/testlowlevelstreaming.py: comment out failing tests for now
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ setup( license='Apache 2.0', install_requires=[ - 'django-fluent-utils>=1.2', # DRY utility code + 'django-fluent-utils>=1.2.1', # DRY utility code 'django-parler>=...
Fix migrations in tests because apps.is_installed() is called too early for PluginUrlField
py
diff --git a/billy/web/public/views/committees.py b/billy/web/public/views/committees.py index <HASH>..<HASH> 100644 --- a/billy/web/public/views/committees.py +++ b/billy/web/public/views/committees.py @@ -35,8 +35,9 @@ def committees(request, abbr): chamber_name = '' chambers = {'upper': meta['upper_c...
add joint only if there are joint committees
py
diff --git a/tohu/custom_generator.py b/tohu/custom_generator.py index <HASH>..<HASH> 100644 --- a/tohu/custom_generator.py +++ b/tohu/custom_generator.py @@ -43,7 +43,7 @@ def set_item_class_name(cls_obj): FoobarGenerator -> Foobar QuuxGenerator -> Quux """ - if hasattr(cls_obj, '__tohu_ite...
Ensure we look up __tohu__items__name__ only in this particular custom generator class, not any superclasses
py
diff --git a/handler.py b/handler.py index <HASH>..<HASH> 100644 --- a/handler.py +++ b/handler.py @@ -178,7 +178,7 @@ class MyHandler(): html = parse(urlopen(req, timeout=3)) title = html.find(".//title").text.strip() # strip unicode - title = title.encode('ascii', 'ig...
Switch to utf-8 to support unicode
py
diff --git a/daiquiri/handlers.py b/daiquiri/handlers.py index <HASH>..<HASH> 100644 --- a/daiquiri/handlers.py +++ b/daiquiri/handlers.py @@ -99,7 +99,10 @@ class TTYDetectorStreamHandler(logging.StreamHandler): """Stream handler that adds a hint in the record if the stream is a TTY.""" def format(self, re...
Make sure Stream is usable even if `isatty` is not exposed e.g. socket.socket.makefile() does not expose it
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -55,7 +55,7 @@ setup( install_requires=[ "fonttools[ufo,lxml,unicode]>=4.21.1 ; platform_python_implementation == 'CPython'", "fonttools[ufo,unicode]>=4.21.1 ; platform_python_implementation != 'CPython'...
setup.py: allow to install glyphsLib>=<I>, including v6
py
diff --git a/src/guake.py b/src/guake.py index <HASH>..<HASH> 100644 --- a/src/guake.py +++ b/src/guake.py @@ -480,8 +480,9 @@ class Guake(SimpleGladeApp): notification = pynotify.Notification( _('Guake!'), _('A problem happened when binding <b>%s</b> key.\n' - ...
Enabling the trayicon when unable to bind the show_hide shortcut If anything prevents the global shortcut to be binded, the user needs a way to try to fix it. The way I found was ensure that the trayicon is enabled to the user use it to access the prefs dialog.
py
diff --git a/modin/engines/base/io/sql/sql_reader.py b/modin/engines/base/io/sql/sql_reader.py index <HASH>..<HASH> 100644 --- a/modin/engines/base/io/sql/sql_reader.py +++ b/modin/engines/base/io/sql/sql_reader.py @@ -32,8 +32,6 @@ class SQLReader(FileReader): index_col: Column(s) to set as index(MultiInd...
Change distributed `read_sql` check explictly for string (#<I>) * Change distributed `read_sql` check explictly for string * Resolves #<I>
py
diff --git a/zipline/errors.py b/zipline/errors.py index <HASH>..<HASH> 100644 --- a/zipline/errors.py +++ b/zipline/errors.py @@ -191,6 +191,13 @@ at frequency '{data_frequency}'. """.strip() +class HistoryInInitialize(ZiplineError): + """ + Raised when an algorithm calls history() in initialize. + """ +...
ENH: Fail when history() is called in initialize.
py
diff --git a/glue/__init__.py b/glue/__init__.py index <HASH>..<HASH> 100644 --- a/glue/__init__.py +++ b/glue/__init__.py @@ -1,4 +1,4 @@ -__author__ = 'Duncan Brown <duncan@gravity.phys.uwm.edu>' +__author__ = 'Duncan Brown <dbrown@ligo.caltech.edu>' __date__ = '$Date$' __version__ = '$Revision$'[11:-2] # $Source$
change email address to test doc build
py
diff --git a/emencia_paste_djangocms_3/django_buildout/project/utils/templatetags/utils_addons.py b/emencia_paste_djangocms_3/django_buildout/project/utils/templatetags/utils_addons.py index <HASH>..<HASH> 100644 --- a/emencia_paste_djangocms_3/django_buildout/project/utils/templatetags/utils_addons.py +++ b/emencia_pa...
Fix split filter in emencia_utils templatetags that was returning a string instead of a list
py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index <HASH>..<HASH> 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -690,7 +690,7 @@ class NDFrame(PandasObject): def rename_axis(self, mapper, axis=0, copy=True, inplace=False): """ Alter index and / or columns usi...
DOC: Fix typo in docstring (#<I>)
py
diff --git a/nianalysis/archive/daris/__init__.py b/nianalysis/archive/daris/__init__.py index <HASH>..<HASH> 100644 --- a/nianalysis/archive/daris/__init__.py +++ b/nianalysis/archive/daris/__init__.py @@ -682,6 +682,28 @@ class DarisSession: def download(self, location, project_id, subject_id, file_id, ...
added doc string to daris download method
py
diff --git a/ontobio/rdfgen/gocamgen/gocam_builder.py b/ontobio/rdfgen/gocamgen/gocam_builder.py index <HASH>..<HASH> 100644 --- a/ontobio/rdfgen/gocamgen/gocam_builder.py +++ b/ontobio/rdfgen/gocamgen/gocam_builder.py @@ -199,8 +199,8 @@ class AssocExtractor: entities = parser.parse(gpi_file) for ent...
Pulling gene connection from GPI Encoded By field; for geneontology/gocamgen#<I>
py
diff --git a/scripts/issue_helper/python.py b/scripts/issue_helper/python.py index <HASH>..<HASH> 100644 --- a/scripts/issue_helper/python.py +++ b/scripts/issue_helper/python.py @@ -1,9 +1,22 @@ +from typing import List + +from github.Issue import Issue + from common import Common _PYTHON_OWNER = {'msyyc', 'BigCat...
[Issue helper] Skip issue created by owners (#<I>) * initial * rename yml * git push function * only collect issues with label 'Mgmt' * handle exception * date format * update log print * update bot policy * skip self-create issue * add ziwei and zhenbiao * Update python.py * skip self...
py
diff --git a/satpy/scene.py b/satpy/scene.py index <HASH>..<HASH> 100644 --- a/satpy/scene.py +++ b/satpy/scene.py @@ -150,6 +150,12 @@ class Scene(MetadataObject): self.readers = self.create_reader_instances(filenames=filenames, reader=reader, ...
Check for empty Dataset IDs in Scene
py
diff --git a/salt/syspaths.py b/salt/syspaths.py index <HASH>..<HASH> 100644 --- a/salt/syspaths.py +++ b/salt/syspaths.py @@ -40,13 +40,13 @@ try: ) except ImportError: # The installation time was not generated, let's define the default values - platform = sys.platform.lower() - if platform.startswith...
Make platform variable private This makes it so that platform is not exposed as syspaths.platform.
py
diff --git a/wal_e/cmd.py b/wal_e/cmd.py index <HASH>..<HASH> 100755 --- a/wal_e/cmd.py +++ b/wal_e/cmd.py @@ -484,6 +484,14 @@ def monkeypatch_tarfile_copyfileobj(): tarfile.copyfileobj = copyfileobj.copyfileobj +def render_subcommand(args): + """Render a subcommand for human-centric viewing""" + if arg...
Print command at start-up with more attention paid to rendering In particular, 'delete' has two levels of subcommands and knowing which one was used is handy.
py
diff --git a/llvmlite/ir/values.py b/llvmlite/ir/values.py index <HASH>..<HASH> 100644 --- a/llvmlite/ir/values.py +++ b/llvmlite/ir/values.py @@ -408,7 +408,10 @@ class Function(GlobalValue): args = ", ".join(str(a) for a in self.args) name = self.get_reference() attrs = self.attributes - ...
Fix emission of function signatures that only contain a vararg.
py
diff --git a/cmsfields/forms/widgets.py b/cmsfields/forms/widgets.py index <HASH>..<HASH> 100644 --- a/cmsfields/forms/widgets.py +++ b/cmsfields/forms/widgets.py @@ -11,7 +11,7 @@ from django.utils.safestring import mark_safe class HorizonatalRadioFieldRenderer(RadioFieldRenderer): def __init__(self, name, val...
Removed non-generic class from HorizonatalRadioFieldRenderer The class was no longer used in the JavaScript code.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ extras_require = { setup( name='moto', - version='1.1.18', + version='1.1.19', description='A library that allows your python tests to easily' ' mock out the boto library', ...
bumping to version <I>
py
diff --git a/ontrack-delivery/publish.py b/ontrack-delivery/publish.py index <HASH>..<HASH> 100755 --- a/ontrack-delivery/publish.py +++ b/ontrack-delivery/publish.py @@ -77,7 +77,7 @@ def github_publish(options): print "[publish] Release ID is %d" % releaseid # Attach artifacts to the release github.upl...
Release: Not using the `dir` option any longer (current directory is fine)
py
diff --git a/permalinks/permalinks.py b/permalinks/permalinks.py index <HASH>..<HASH> 100644 --- a/permalinks/permalinks.py +++ b/permalinks/permalinks.py @@ -107,7 +107,7 @@ def get_permalink_path(self): except StopIteration: return None - return '/{settings[PERMALINK_PATH]}/{first_permalink}'.forma...
Prior to this commit links to permalink would be missing extension
py
diff --git a/K2fov/__init__.py b/K2fov/__init__.py index <HASH>..<HASH> 100644 --- a/K2fov/__init__.py +++ b/K2fov/__init__.py @@ -12,11 +12,11 @@ warnings.simplefilter(action="ignore", category=FutureWarning) # Where are the K2 Campaign parameters stored? PACKAGEDIR = os.path.dirname(os.path.abspath(__file__)) -# ...
Increase padding to 6px in response to #<I>
py
diff --git a/openaps/vendors/dexcom.py b/openaps/vendors/dexcom.py index <HASH>..<HASH> 100644 --- a/openaps/vendors/dexcom.py +++ b/openaps/vendors/dexcom.py @@ -29,6 +29,30 @@ class scan (Use): """ scan for usb stick """ def scanner (self): return readdata.Dexcom.FindDevice( ) + def before_main (self, arg...
add naive dexcom commands
py
diff --git a/simuvex/plugins/view.py b/simuvex/plugins/view.py index <HASH>..<HASH> 100644 --- a/simuvex/plugins/view.py +++ b/simuvex/plugins/view.py @@ -54,6 +54,10 @@ class SimMemView(SimStatePlugin): def set_state(self, state): super(SimMemView, self).set_state(state) + # Make sure self._addr...
SimMemView: convert self._addr to an AST if it's an integer
py
diff --git a/mtools/mplotqueries/plottypes/range_type.py b/mtools/mplotqueries/plottypes/range_type.py index <HASH>..<HASH> 100644 --- a/mtools/mplotqueries/plottypes/range_type.py +++ b/mtools/mplotqueries/plottypes/range_type.py @@ -75,10 +75,10 @@ class RangePlotType(BasePlotType): artists.append(arti...
added proper y axis labels to range type plots.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import sdist_upip setup(name='picoweb', - version='1.5.4', + version='1.6', description="A very lightweight, memory-efficient async web framework \ for MicroPython/Pycopy and its uasyncio mo...
setup.py: Release <I>.
py
diff --git a/src/marshmallow/error_store.py b/src/marshmallow/error_store.py index <HASH>..<HASH> 100644 --- a/src/marshmallow/error_store.py +++ b/src/marshmallow/error_store.py @@ -13,8 +13,6 @@ class ErrorStore: def __init__(self): #: Dictionary of errors stored during serialization self.error...
Remove unused _pending attribute (#<I>)
py
diff --git a/pandas/io/data.py b/pandas/io/data.py index <HASH>..<HASH> 100644 --- a/pandas/io/data.py +++ b/pandas/io/data.py @@ -225,11 +225,13 @@ def _unpack(row, kind='td'): els = row.findall('.//%s' % kind) return[val.text_content() for val in els] + def _parse_options_data(table): rows = table.f...
Restored the options to TextParser. They got removed on a copy/paste from my local test file and I just caught it
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,9 +27,11 @@ if os.path.exists(readme_filename): else: long_description = None +exec(open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'x10_any', '_version.py')).read()) + setup( name='x10_any', - ...
Read __version__ from file This way if module is not importable, still have version string
py
diff --git a/src/transformers/integrations.py b/src/transformers/integrations.py index <HASH>..<HASH> 100644 --- a/src/transformers/integrations.py +++ b/src/transformers/integrations.py @@ -54,7 +54,7 @@ from .trainer_utils import PREFIX_CHECKPOINT_DIR, BestRun, EvaluationStrategy # # Integration functions: def i...
Fix WAND_DISABLED test (#<I>) * Fix WAND_DISABLED test * Remove duplicate import * Make a test that actually works... * Fix style
py
diff --git a/editor/widgets/toolbox_opencv.py b/editor/widgets/toolbox_opencv.py index <HASH>..<HASH> 100644 --- a/editor/widgets/toolbox_opencv.py +++ b/editor/widgets/toolbox_opencv.py @@ -78,11 +78,6 @@ class OpencvImage(gui.Image, OpencvWidget): super(OpencvImage, self).__init__(filename, *args, **kwargs) ...
A little correction on toolbox_opencv. It is no more required to setup the image url to override changes by the editor, that property is now hidden in editor.
py
diff --git a/peppy/project.py b/peppy/project.py index <HASH>..<HASH> 100644 --- a/peppy/project.py +++ b/peppy/project.py @@ -121,7 +121,7 @@ class ProjectContext(object): @copy class Project(AttributeDict): """ - A class to model a Project. + A class to model a Project (collection of samples and metadata...
get doc for sample sheet accessor on Project; close #<I>
py
diff --git a/setuptools/tests/test_distutils_adoption.py b/setuptools/tests/test_distutils_adoption.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_distutils_adoption.py +++ b/setuptools/tests/test_distutils_adoption.py @@ -86,3 +86,10 @@ def test_pip_import(venv): """ cmd = ['python', '-c', 'impor...
Check that distutils has an origin. Ref #<I>.
py
diff --git a/rehive/api/client.py b/rehive/api/client.py index <HASH>..<HASH> 100644 --- a/rehive/api/client.py +++ b/rehive/api/client.py @@ -80,21 +80,11 @@ class Client: return response_json except requests.exceptions.ConnectionError: - raise Exception("Could not connect to Rehive....
Set all raised errors to APIException errors and removed unnescesary errors
py